1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00
Files
nmap/ncat
dmiller 75318985a1 Silence static analysis warning
LGTM points out that since comparison with sizeof(buf) coerces n to
unsigned, all negative values become very large values, which are
necessarily larger than sizeof(buf), so the test is redundant. We still
want the test in our code to be explicit that we are checking for it, so
reordering the comparisons should silence the warning. A good optimizing
compiler should be able to combine the two conditions anyway.

See https://github.com/github/codeql/issues/4249
2020-09-14 17:41:39 +00:00
..
2015-11-05 20:41:05 +00:00
2019-05-28 21:36:04 +00:00
2015-11-05 20:41:05 +00:00
2020-09-14 17:41:39 +00:00
2019-08-14 18:56:24 +00:00
2019-05-28 21:36:04 +00:00
2019-05-28 21:36:04 +00:00