projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9474b3a
)
Fix potential use-after-free in dbus byte array demarshaling code
author
Dan Williams
<dcbw@redhat.com>
Wed, 5 Mar 2008 14:15:10 +0000
(16:15 +0200)
committer
Jouni Malinen
<j@w1.fi>
Wed, 5 Mar 2008 14:15:10 +0000
(16:15 +0200)
The byte array code should be clearing its own pointer, not the string
array pointer.
wpa_supplicant/dbus_dict_helpers.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/dbus_dict_helpers.c
b/wpa_supplicant/dbus_dict_helpers.c
index
1232ab2
..
d810979
100644
(file)
--- a/
wpa_supplicant/dbus_dict_helpers.c
+++ b/
wpa_supplicant/dbus_dict_helpers.c
@@
-674,7
+674,7
@@
static dbus_bool_t _wpa_dbus_dict_entry_get_byte_array(
/* Zero-length arrays are valid. */
if (entry->array_len == 0) {
free(entry->bytearray_value);
- entry->
str
array_value = NULL;
+ entry->
byte
array_value = NULL;
}
success = TRUE;