From 117329a5e48f27e0d93eedc5ba80bad04325b467 Mon Sep 17 00:00:00 2001 From: dmiller Date: Tue, 15 Jul 2025 18:24:40 +0000 Subject: [PATCH] Also check lower bound for attr cast to int --- osscan.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osscan.h b/osscan.h index 43a9ec51a..83e22adda 100644 --- a/osscan.h +++ b/osscan.h @@ -245,7 +245,7 @@ struct ObservationPrint { FingerPrintScan scan_info; std::vector 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(attr)]; }