Summary: | can crash on failed realloc; cannot be forced to crash on all failed mallocs | ||
---|---|---|---|
Product: | dbus | Reporter: | Simon McVittie <smcv> |
Component: | core | Assignee: | Simon McVittie <smcv> |
Status: | RESOLVED FIXED | QA Contact: | John (J5) Palmieri <johnp> |
Severity: | enhancement | ||
Priority: | medium | CC: | hp |
Version: | 1.4.x | Keywords: | patch |
Hardware: | Other | ||
OS: | All | ||
URL: | http://cgit.freedesktop.org/~smcv/dbus/log/?h=14-malloc-cannot-fail-41048 | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
[1/2] dbus_realloc: don't crash if realloc() returns NULL while using guards
[2/2] dbus-memory: add optional checking for system malloc() (etc.) failing |
Description
Simon McVittie
2011-09-20 11:03:27 UTC
Created attachment 51416 [details] [review] [1/2] dbus_realloc: don't crash if realloc() returns NULL while using guards Created attachment 51417 [details] [review] [2/2] dbus-memory: add optional checking for system malloc() (etc.) failing If tests are enabled and DBUS_MALLOC_CANNOT_FAIL is set, abort on system malloc() failures (as GLib's g_malloc does). This can be used in conjunction with a resource limit, to turn runaway memory leaks into a debuggable core-dump. Comment on attachment 51416 [details] [review] [1/2] dbus_realloc: don't crash if realloc() returns NULL while using guards Review of attachment 51416 [details] [review]: ----------------------------------------------------------------- ++ Comment on attachment 51417 [details] [review] [2/2] dbus-memory: add optional checking for system malloc() (etc.) failing Review of attachment 51417 [details] [review]: ----------------------------------------------------------------- ++ Fixed in git for 1.5.10, thanks. I didn't merge this for 1.4 in the end. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.