Skip to content

auth: Clear GUID from server if out of memory

Simon McVittie requested to merge smcv/dbus:auth-idempotent into master

If we retry processing the message in response to OOM, but we don't clear this buffer first, then the assertion at the beginning will fail.


I can only reproduce this when running the tests as root (presumably we get a different number of malloc/free cycles), which explains why nobody has ever seen this before.

OOM doesn't actually happen (particularly on Linux, where the OOM killer terminates a hopefully non-innocent process instead), so I am probably not going to risk backporting this to stable-branches.

Merge request reports