From 6b35ae81a38573dcc42a944ebd8c2e6317cf5ad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Mon, 8 Nov 2021 17:44:18 +0300 Subject: slicecpy: fix buffer overflow on sections shorter than 3 chars. --- test.ini | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test.ini') diff --git a/test.ini b/test.ini index 6f16ce0..389b74b 100644 --- a/test.ini +++ b/test.ini @@ -3,7 +3,7 @@ key2= -1520 3=no #test one character keys # this is a comment -[asection] +[s] skey="ur 2 slow" #with comment bad=#this is not good bad2$#this is also bad @@ -14,4 +14,8 @@ bool3=false bool3 = true =false #another bad key +[se] + [bad section + +[section] -- cgit v1.2.3