mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 05:27:00 +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->name = window;
|
||||||
tool->translated = messages_get(window);
|
tool->translated = messages_get(window);
|
||||||
tool->validation = malloc(strlen(window) + 1);
|
tool->validation = malloc(strlen(window) + 2);
|
||||||
if (!tool->validation) {
|
if (!tool->validation) {
|
||||||
LOG(("Insufficient memory for malloc()"));
|
LOG(("Insufficient memory for malloc()"));
|
||||||
die("Insufficient memory");
|
die("Insufficient memory");
|
||||||
|
Loading…
Reference in New Issue
Block a user