http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=47069
User: cmaynard
Date: 2013/01/14 08:34 AM
Log:
Declare count as ssize_t instead of size_t, since read(), and thus ws_read(), can return a negative number. If that were to happen, then assigning the return value to an unsigned variable and then comparing that variable against 0 will yield incorrect/unintended results. Fixes Coverity CID 761910: Negative array index write.
Directory: /trunk/
Changes Path Action
+1 -1 capture_sync.c Modified