ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] Segmentation fault at file_read

From: "Neha Chahal" <neha.chahal@xxxxxxxxx>
Date: Tue, 7 Nov 2006 17:16:34 -0800
Hi

I am trying to read 4 bytes from my capture file. The code looks like this

guint32 id;
bytes_read = file_read(&id, 1, 4, wth->fh)

And this dumps core. If i change 1 to 4, it works but then it will
read 16 bytes which i dont want.

Does anybody have any suggestions. Thank you for your help.

--
Thanks and Regards,
Neha Chahal