This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/18524] Missing calloc error checking in __cxa_thread_atexit_impl


https://sourceware.org/bugzilla/show_bug.cgi?id=18524

--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Ondrej Bilka from comment #1)
> Do you have patch for that. Only course of action is return which causes
> memory leak as you don't call destructor later.

I think the interface cannot be salvaged.  The required space for bookkeeping
needs to be allocated in .tbss, or separately, at the time .tbss is allocated. 
I don't think anything in the standard permits leaks or exceptions in this
context.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]