Wireshark-commits: [Wireshark-commits] rev 49833: /trunk/wiretap/ /trunk/wiretap/: pcapng.c
Date: Fri, 07 Jun 2013 08:19:41 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=49833

User: guy
Date: 2013/06/07 01:19 AM

Log:
 Prevent attempts to allocate huge amounts of memory by imposing an
 artificial 16MB limit on blocks.
 
 Do some sanity checks when reading options, to make sure we don't read
 past the end of the block.
 
 Make some variables unsigned so as not to get inappropriate
 sign-extension (which, in practice, should never happen due to the 16MB
 block size limit, although if the limit is raised above 2^31-1, the
 limit won't protect you).
 
 Fixes bug 8752.

Directory: /trunk/wiretap/
  Changes    Path          Action
  +141 -23   pcapng.c      Modified