From baf62801e4cade170877be2fd8afb7d6d0a18c41 Mon Sep 17 00:00:00 2001 From: Jeff Daily Date: Tue, 11 Apr 2023 21:05:21 +0000 Subject: [PATCH] fix stack-buffer-overflow reported by address sanitizer --- src/common.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.cu b/src/common.cu index eb0743a..274fb65 100644 --- a/src/common.cu +++ b/src/common.cu @@ -89,7 +89,7 @@ static double parsesize(const char *value) { double size; char size_lit; - int count = sscanf(value, "%lf %1s", &size, &size_lit); + int count = sscanf(value, "%lf %c", &size, &size_lit); switch (count) { case 2: