[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] [bug #47847] Undefined behavior [use-after-free] possible

From: Daiki Ueno
Subject: [bug-gettext] [bug #47847] Undefined behavior [use-after-free] possible in libgettext
Date: Mon, 9 May 2016 03:27:56 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #1, bug #47847 (project gettext):

Thanks for pointing that out.

> A reasonable fix is to convert the pointers to be compared to uintptr while
both pointers are still valid

It sounds like a good idea, but I doubt we can always assume that uintptr_t is
available.  So, I have created a patch to fix it by postponing free:

Does it make sense?


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]