aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/merge.h
diff options
context:
space:
mode:
authorMichael McConville <mmcco@mykolab.com>2016-02-10 19:29:18 -0500
committerGuy Harris <guy@alum.mit.edu>2016-02-11 01:39:48 +0000
commit5cffcf20b147ac88d58774ccce0b76db4704b329 (patch)
tree51cc91a151462431bb14afc9b75c28ab3668be95 /wiretap/merge.h
parent7b8883486907cd74a0fc5d2865114b88c3318334 (diff)
Avoid undefined behavior in overflow check
Signed overflow is undefined, so testing for overflow with "if (i + 1 < i)" is itself undefined. Because this instance is an increment, we can just test against G_MAXINT. Change-Id: Ib8b7c23ec362d5637125fcf6457ea9423fedf0e1 Reviewed-on: https://code.wireshark.org/review/13896 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/merge.h')
0 files changed, 0 insertions, 0 deletions