Skip to content

gprintf: Avoid an infinite loop on ENOMEM in g_vasprintf()

Philip Withnall requested to merge pwithnall/glib:2753-vasprintf-loop into main

Instead of going through the normal error logging code, which does further allocations and will potentially call back into g_vasprintf() and create an infinite loop, just fputs() an error message and abort. If we’re getting ENOMEM the process is doomed anyway.

Signed-off-by: Philip Withnall pwithnall@endlessos.org

Fixes: #2753 (closed)

Closes #2753 (closed)

Merge request reports