fragattacks/wpa_supplicant/dbus
Jouni Malinen f11e797d4c D-Bus: Avoid valgrind warning due to compiler optimization
It looks like both gcc and clang optimize the (entry.type != foo ||
entry.array_type != bar) in a way that ends up evaluating the second
condition even when the first one results in 0. While this is not really
what the C language requirements on short-circuit evaluation require,
the compiler likely assumes this can have no side effects and with both
type and array_type being comparable in a single 64-bit operation, this
can clearly be a bit more efficient. While the code behaves same in both
cases, valgrind does warn about use of uninitialized memory when the
second condition is evaluated (entry.array_type is not initialized if
entry.type != DBUS_TYPE_ARRAY).

To keep valgrind logs cleaner, initialize entry.array_type to
DBUS_TYPE_INVALID so that these compiler optimizations do not result in
reading uninitialized memory.

Signed-off-by: Jouni Malinen <j@w1.fi>
2015-01-02 22:50:26 +02:00
..
.gitignore dbus: Clean dbus build files on wpa_supplicant 'make clean' 2009-12-20 20:29:09 +02:00
dbus_common_i.h Update license notification in D-Bus interface files 2012-07-02 12:04:38 +03:00
dbus_common.c Remove leftover timeouts on cleanup 2014-05-12 19:43:59 +03:00
dbus_common.h Update license notification in D-Bus interface files 2012-07-02 12:04:38 +03:00
dbus_dict_helpers.c D-Bus: Avoid valgrind warning due to compiler optimization 2015-01-02 22:50:26 +02:00
dbus_dict_helpers.h D-Bus: Make WPAS_DBUS_TYPE_BINARRAY value less confusing 2015-01-01 13:51:45 +02:00
dbus_new_handlers_p2p.c D-Bus: Fix ServiceDiscoveryResponse to accept int32 dialog_token 2014-12-31 10:47:31 +02:00
dbus_new_handlers_p2p.h dbus: Add a global property to set or unset WFD IEs 2014-09-28 20:47:06 +03:00
dbus_new_handlers_wps.c D-Bus: Fix WPS ConfigMethods getter to handle no value properly 2014-12-29 15:49:05 +02:00
dbus_new_handlers.c D-Bus: Make wpas_dbus_error_scan_error() static 2014-12-31 11:00:54 +02:00
dbus_new_handlers.h dbus: Add an interface configuration entry to set the WPS methods 2014-10-04 18:29:33 +03:00
dbus_new_helpers.c Check os_snprintf() result more consistently - automatic 1 2014-12-08 11:42:07 +02:00
dbus_new_helpers.h Update license notification in D-Bus interface files 2012-07-02 12:04:38 +03:00
dbus_new_introspect.c Update license notification in D-Bus interface files 2012-07-02 12:04:38 +03:00
dbus_new.c D-Bus: Avoid compiler warning on sometimes uninitialized variable 2015-01-02 22:48:30 +02:00
dbus_new.h dbus: add BSS Age property to indicate last-seen time 2014-09-07 19:18:45 +03:00
dbus_old_handlers_wps.c D-Bus(old): Fix WPS interface to require BSSID for wpsReg 2014-12-29 15:49:05 +02:00
dbus_old_handlers.c D-Bus(old): Remove duplicated blob->data check 2014-12-29 15:49:05 +02:00
dbus_old_handlers.h Update license notification in D-Bus interface files 2012-07-02 12:04:38 +03:00
dbus_old.c D-Bus(old): Remove unnecessary wpa_supplicant_state_txt() check 2014-12-29 15:49:05 +02:00
dbus_old.h Update license notification in D-Bus interface files 2012-07-02 12:04:38 +03:00
dbus-wpa_supplicant.conf Move D-Bus related files into their own subdirectory 2009-12-20 20:11:14 +02: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 Add CONFIG_CODE_COVERAGE=y option for gcov 2013-11-24 19:16:12 +02:00