hostap/wpa_supplicant/dbus
Reinette Chatre af9d709019 D-Bus: Fix memory leak when using array of array of bytes
When parsing a dict entry which is an array of an array of bytes the entry
representing the dict entry has DBUS_TYPE_ARRAY as its type and
WPAS_DBUS_TYPE_ARRAY as its array_type. The function freeing this parsed
data incorrectly tested the entry type for WPAS_DBUS_TYPE_ARRAY while doing
no testing of this value for array_type. This results in a memory leak
whenever a D-Bus message with this type of data is parsed.

Messages affected are:
fi.w1.wpa_supplicant1.Interface.P2PDevice
	using RequestedDeviceTypes with Find method
	using SecondaryDeviceTypes or VendorExtension with P2PDeviceProperties

fi.w1.wpa_supplicant1.Group
	using WPSVendorExtensions with Properties property

All of the above messages are parsed with the same function,
wpa_dbus_dict_get_entry, so the assignment of the entry's type and
array_type is consistent. The parsed data is also consistently freed with
the same function, wpa_dbus_dict_entry_clear, so we can use the same checks
to free the data correctly.

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Angie Chinchilla <angie.v.chinchilla@intel.com>
2011-09-22 01:01:20 +03:00
..
.gitignore dbus: Clean dbus build files on wpa_supplicant 'make clean' 2009-12-20 20:29:09 +02:00
dbus-wpa_supplicant.conf Move D-Bus related files into their own subdirectory 2009-12-20 20:11:14 +02:00
dbus_common.c dbus: Fix init-failure-detection 2010-01-01 21:30:58 +02:00
dbus_common.h dbus: Share common initialization code for both old and new interface 2009-12-31 00:15:56 +02:00
dbus_common_i.h dbus: Do not deinitialize new D-Bus API if it is not initialized 2009-12-31 21:50:12 +02:00
dbus_dict_helpers.c D-Bus: Fix memory leak when using array of array of bytes 2011-09-22 01:01:20 +03:00
dbus_dict_helpers.h dbus: clean up new D-Bus interface getters and setters 2011-07-29 21:25:39 +03:00
dbus_new.c Fix typos found by codespell 2011-09-22 00:43:59 +03:00
dbus_new.h Add dbus signal for information about server certification 2011-07-05 12:22:32 +03:00
dbus_new_handlers.c dbus: clean up new D-Bus interface getters and setters 2011-07-29 21:25:39 +03:00
dbus_new_handlers.h dbus: clean up new D-Bus interface getters and setters 2011-07-29 21:25:39 +03:00
dbus_new_handlers_p2p.c Fix typos found by codespell 2011-09-22 00:43:59 +03:00
dbus_new_handlers_p2p.h dbus: clean up new D-Bus interface getters and setters 2011-07-29 21:25:39 +03:00
dbus_new_handlers_wps.c dbus: clean up new D-Bus interface getters and setters 2011-07-29 21:25:39 +03:00
dbus_new_helpers.c dbus: Remove separate access variable from properties 2011-08-07 11:16:05 +03:00
dbus_new_helpers.h dbus: Remove separate access variable from properties 2011-08-07 11:16:05 +03:00
dbus_new_introspect.c dbus: Remove separate access variable from properties 2011-08-07 11:16:05 +03:00
dbus_old.c Add dbus signal for information about server certification 2011-07-05 12:22:32 +03:00
dbus_old.h Fix non D-Bus builds by removing 'void void' in return value 2011-07-12 15:39:33 +03:00
dbus_old_handlers.c dbus: clean up new D-Bus interface getters and setters 2011-07-29 21:25:39 +03:00
dbus_old_handlers.h dbus: Add D-Bus methods to flush the BSS cache 2011-03-20 12:02:33 +02:00
dbus_old_handlers_wps.c P2P: Set Device Password ID in WPS M1/M2 per new rules 2010-09-09 07:17:19 -07:00
fi.epitest.hostap.WPASupplicant.service.in wpa_supplicant: Edit BINDIR in dbus and systemd service files 2011-07-15 12:25:02 +03:00
fi.w1.wpa_supplicant1.service.in wpa_supplicant: Edit BINDIR in dbus and systemd service files 2011-07-15 12:25:02 +03:00
Makefile wpa_supplicant: Respect PKG_CONFIG variable if set in the environment 2011-07-04 20:35:38 +03:00