diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-01-14 16:34:19 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-01-14 16:34:19 +0000 |
commit | de91f3638b55d1e36dd04bba792cfab2c03de1c1 (patch) | |
tree | 541fc7be18a30af3dd2d530cdadd1c426361fb8a /ui/gtk/hostlist_ipv6.c | |
parent | 31e5c6f7273a0963296ef2dc0e2bdcc223773b8d (diff) |
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.
svn path=/trunk/; revision=47069
Diffstat (limited to 'ui/gtk/hostlist_ipv6.c')
0 files changed, 0 insertions, 0 deletions