qt5base-lts/tests/auto/dbus/qdbusmarshall
Sami Rosendahl 8f19f14274 Fix crash in QDBusDemarshaller basic string-like type extraction
QDBusArgument string extraction operators and QDBusDemarshaller that
implements the extraction do not check the type of the extracted value.
When extracting string-like basic DBus type that actually is e.g. an
integer the string extraction will crash as it blindly attempts to use the
integer as a pointer to char.

The fix adds DBus type checks to QDBusArgument string type extraction
operator implementations.
The checks are as permissive as possible provided crashes are avoided.
Previously supported functionality of extracting an object path or type
signature to a string type is retained.

Task-number: QTBUG-22840
Change-Id: I29be1ae592658ca268c65ed692e1d42619d52280
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2011-12-25 21:58:57 +01:00
..
qpong Moved dbus autotests into new directory structure 2011-09-01 09:37:08 +02:00
test all remaining tests: eliminated usage of qttest_p4.prf 2011-10-25 08:42:23 +02:00
.gitignore Moved dbus autotests into new directory structure 2011-09-01 09:37:08 +02:00
common.h Remove unused code from qdbusmarshall test. 2011-11-02 00:53:26 +01:00
qdbusmarshall.pro all remaining tests: eliminated usage of qttest_p4.prf 2011-10-25 08:42:23 +02:00
tst_qdbusmarshall.cpp Fix crash in QDBusDemarshaller basic string-like type extraction 2011-12-25 21:58:57 +01:00