mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-15 02:30:22 +01:00
Merge branch 'dbus-1.6'
Conflicts: NEWS
This commit is contained in:
commit
f2ea8ccc11
2 changed files with 12 additions and 1 deletions
5
NEWS
5
NEWS
|
|
@ -1,7 +1,10 @@
|
|||
D-Bus 1.7.6 (UNRELEASED)
|
||||
==
|
||||
|
||||
...
|
||||
Fixes:
|
||||
|
||||
• If malloc() returns NULL in _dbus_string_init() or similar, don't free
|
||||
an invalid pointer if the string is later freed (fd.o #65959, Chengwei Yang)
|
||||
|
||||
D-Bus 1.7.4 (2013-06-13)
|
||||
==
|
||||
|
|
|
|||
|
|
@ -246,6 +246,14 @@ _dbus_string_free (DBusString *str)
|
|||
|
||||
if (real->constant)
|
||||
return;
|
||||
|
||||
/* so it's safe if @p str returned by a failed
|
||||
* _dbus_string_init call
|
||||
* Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65959
|
||||
*/
|
||||
if (real->str == NULL)
|
||||
return;
|
||||
|
||||
dbus_free (real->str - real->align_offset);
|
||||
|
||||
real->invalid = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue