mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 20:56:24 +00:00
Possible buffer overflow in the config load code fixed. Thanks to wk <witold.kowolik@open-e.com> to pointing on it!
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2297 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1124,7 +1124,7 @@ int config_load(const char *config_name)
|
||||
} while (i < size);
|
||||
|
||||
size = i;
|
||||
buf[size+1] = '\0';
|
||||
buf[size] = '\0';
|
||||
|
||||
config_parse_main(buf, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user