mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
[project @ 2006-01-25 23:12:36 by jmb]
Fix buffer overflow svn path=/import/netsurf/; revision=2044
This commit is contained in:
parent
b5fcb4d94c
commit
5fdc462c1d
@ -238,7 +238,7 @@ void ro_gui_configure_register(const char *window,
|
||||
}
|
||||
tool->name = window;
|
||||
tool->translated = messages_get(window);
|
||||
tool->validation = malloc(strlen(window) + 1);
|
||||
tool->validation = malloc(strlen(window) + 2);
|
||||
if (!tool->validation) {
|
||||
LOG(("Insufficient memory for malloc()"));
|
||||
die("Insufficient memory");
|
||||
|
Loading…
Reference in New Issue
Block a user