Nmap Development mailing list archives

Wrong bounds in vectorize_hlim


From: David Fifield <david () bamsoftware com>
Date: Wed, 10 Jun 2015 20:11:13 -0700

vectorize_hlim (both the C++ and Python versions) have lines like this:

        if (32 - er_lim <= hlim && hlim <= 32 + 5)

It looks like it should rather be

        if (32 - er_lim <= hlim && hlim <= 32 + er_lim)

i.e., hlim lies within the interval 32±er_lim.
_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: