From d3c770536d0ee9032b63742aced4a46b211b1eb7 Mon Sep 17 00:00:00 2001
From: chrchr-github <78114321+chrchr-github@users.noreply.github.com>
Date: Wed, 13 May 2026 09:40:26 +0200
Subject: [PATCH 1/2] Update std.cfg
---
cfg/std.cfg | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/cfg/std.cfg b/cfg/std.cfg
index e282dd99995..ec5fbb72548 100644
--- a/cfg/std.cfg
+++ b/cfg/std.cfg
@@ -4411,7 +4411,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
-
+
@@ -4444,7 +4444,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
-
+
@@ -4861,7 +4861,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
false
-
+
@@ -5044,7 +5044,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
false
-
+
@@ -5433,7 +5433,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
false
-
+
From b2f1ec8d5a77791945630004a2144b9308fa500f Mon Sep 17 00:00:00 2001
From: chrchr-github <78114321+chrchr-github@users.noreply.github.com>
Date: Wed, 13 May 2026 09:43:49 +0200
Subject: [PATCH 2/2] Update std.c
---
test/cfg/std.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/test/cfg/std.c b/test/cfg/std.c
index 928d52bf116..997f8204f73 100644
--- a/test/cfg/std.c
+++ b/test/cfg/std.c
@@ -3519,6 +3519,13 @@ void invalidFunctionArg_strchr(const char *cs, int c)
(void)strchr(cs, 256);
}
+void constParameterPointer_strchr(char *str) // #14453
+{
+ char *sep = strchr(str, ':');
+ if (sep)
+ *sep = '\0';
+}
+
void invalidFunctionArg_log10(float f, double d, const long double ld)
{
// cppcheck-suppress invalidFunctionArg