From 0fa728cf84edebac637ee9628071bbda37bda6a7 Mon Sep 17 00:00:00 2001 From: apriestman Date: Fri, 27 Feb 2026 15:47:51 -0500 Subject: [PATCH] Add null check for path parameter --- win32/is_image_supported_lib/IsImageSupportedLib.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/win32/is_image_supported_lib/IsImageSupportedLib.cpp b/win32/is_image_supported_lib/IsImageSupportedLib.cpp index 7483743ecd..a90a936852 100644 --- a/win32/is_image_supported_lib/IsImageSupportedLib.cpp +++ b/win32/is_image_supported_lib/IsImageSupportedLib.cpp @@ -30,6 +30,10 @@ If return value is non-null it must be freed by the caller */ char* isImageSupported(const char* path, const char* password) { + if (path == nullptr) { + return nullptr; + } + TskIsImageSupported tskIsImage; if (password != NULL) { std::string passwordStr(password);