diff options
author | Dan Winship <danw@gnome.org> | 2010-06-09 20:06:51 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2010-06-09 20:10:59 -0400 |
commit | ea57345a5c5f00fe85801b3f528687b93793afff (patch) | |
tree | ff071f9abde002e07a983be7186293386ff6f290 /tests/ntlm-test.c | |
parent | ceceaa912cd02660eecacd52d9a1ffc4d15c3c00 (diff) | |
download | libsoup-ea57345a5c5f00fe85801b3f528687b93793afff.tar.gz |
soup_date_new_from_string: fix an out-of-bounds memory access
soup_date_new_from_string() would sometimes read off the end of the
string, but tests/date didn't catch this even under valgrind, because
all of the strings were compile-time constants and they got laid out
in a way that never triggered a read of invalid memory. So tweak the
test to g_strdup each string before parsing it, which will let
valgrind notice if we read outside its bounds in the future.
https://bugzilla.gnome.org/show_bug.cgi?id=620288
Diffstat (limited to 'tests/ntlm-test.c')
0 files changed, 0 insertions, 0 deletions