From a3da39e6aab288007a21f5f7da851094fb6aad2b Mon Sep 17 00:00:00 2001 From: Pavel Brychta Date: Wed, 14 Dec 2022 08:35:51 +0100 Subject: [PATCH] Detekce nullptr pri testovani retezce --- src/encString.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/encString.cpp b/src/encString.cpp index 3f629c7..68020e9 100644 --- a/src/encString.cpp +++ b/src/encString.cpp @@ -7,6 +7,8 @@ bool isBase64(const char *p) { char c; + if (!p) + return false; if (strlen(p) % 4 != 0) return false; do {