Created attachment 41497 [details] [review] Patch against current git Annotate dbus_malloc*() functions with __attribute__ malloc and __attribute__ alloc_size this improves optimization as well catches buffer overflows at compile time. code like: foo = dbus_malloc(2); strcpy(foo, "epicfail"); will emit: "warning ... will always overflow the destination buffer..."
Patch looks good.
Applied in master as commit e2be7b92, will be in either 1.4.4 or 1.5.0.
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.