https://bugs.kde.org/show_bug.cgi?id=217695

Mark Wielaard <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |ASSIGNED
     Ever confirmed|0                           |1
           Assignee|[email protected]             |[email protected]

--- Comment #3 from Mark Wielaard <[email protected]> ---
Created attachment 135649
  --> https://bugs.kde.org/attachment.cgi?id=135649&action=edit
Set (glibc) errno to ENOMEM when malloc/calloc/realloc/memalign fail

This turned out to be less hard than I assumed. We already have a trick for
calling functions which might only be defined in glibc. The idea is to define
the symbol as weak in out preload library. It will then be NULL unless some
other library defines it for real. Then we can simply call it when it is
non-NULL (and only when one of the allocation functions returns NULL).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to