Author: dmiller
Date: Tue Jul 15 11:24:40 2025
New Revision: 39253

Log:
Also check lower bound for attr cast to int

Modified:
   nmap/osscan.h

Modified: nmap/osscan.h
==============================================================================
--- nmap/osscan.h       (original)
+++ nmap/osscan.h       Tue Jul 15 11:24:40 2025
@@ -245,7 +245,7 @@
   FingerPrintScan scan_info;
   std::vector<FingerTest> extra_tests;
   const char *getInfo(FingerPrintScan::Attribute attr) const {
-    if (attr >= FingerPrintScan::MAX_ATTR)
+    if (attr >= FingerPrintScan::MAX_ATTR || attr < 0)
       return NULL;
     return scan_info.values[static_cast<int>(attr)];
   }

_______________________________________________
Sent through the svn mailing list
https://nmap.org/mailman/listinfo/svn

Reply via email to