diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-10-27 14:30:46 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-10-27 14:30:46 +0000 |
commit | 20011324500a728851e4888c890a756ecf71394b (patch) | |
tree | 9dc37356855fa1b1c009aa978158fac9c85f2d16 /avahi-common/strlst.h | |
parent | cf5ee4f9a5c3625a3d13b92603d1035f976228b0 (diff) |
Add validity checking to TXT data parsing, this fixes a remotely exploitable vulnerability.
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@888 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-common/strlst.h')
-rw-r--r-- | avahi-common/strlst.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/avahi-common/strlst.h b/avahi-common/strlst.h index 1e69367..26708a5 100644 --- a/avahi-common/strlst.h +++ b/avahi-common/strlst.h @@ -102,7 +102,7 @@ char* avahi_string_list_to_string(AvahiStringList *l); size_t avahi_string_list_serialize(AvahiStringList *l, void * data, size_t size); /** Inverse of avahi_string_list_serialize() */ -AvahiStringList *avahi_string_list_parse(const void *data, size_t size); +int avahi_string_list_parse(const void *data, size_t size, AvahiStringList **ret); /** Compare to string lists */ int avahi_string_list_equal(const AvahiStringList *a, const AvahiStringList *b); |