ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 54652: /trunk/ /trunk/: tfshark.c

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 8 Jan 2014 01:07:02 -0800
On Jan 7, 2014, at 9:40 PM, guy@xxxxxxxxxxxxx wrote:

> http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=54652
> 
> User: guy
> Date: 2014/01/08 05:40 AM
> 
> Log:
> Sorry, the bytes-to-read argument to file_read() is unsigned int, so
> cast packet_size to unsigned int.  Yes, that means that it can't read
> more than 65535 bytes.

Sorry, I was distracted when I checked that in.  That means it can't read more than *4294967295* bytes - and, as it has a similar signature to read(), it returns an int, and thus shouldn't be asked to read more than 2147483647 bytes.