[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: When should ralloc.c be used? (WAS: bug#24358)
From: |
Richard Stallman |
Subject: |
Re: When should ralloc.c be used? (WAS: bug#24358) |
Date: |
Wed, 26 Oct 2016 21:25:53 -0400 |
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> Could this be found by doing a debugging build where malloc
> aborts in the conditions where it can't be called directly or
> indirectly?
We could make the functions that create pointers into buffers also
increment a global counter when they do that, and decrement the
counter when done. malloc would abort if the counter is nonzero.
The hard part would be arranging to reset the counter to zero when
there is a nonlocal exit out of such a region.
--
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.
- Re: When should ralloc.c be used? (WAS: bug#24358), (continued)
- Re: When should ralloc.c be used? (WAS: bug#24358), Eli Zaretskii, 2016/10/26
- Re: When should ralloc.c be used? (WAS: bug#24358), Richard Stallman, 2016/10/26
- Re: When should ralloc.c be used? (WAS: bug#24358), Richard Stallman, 2016/10/24
- Re: When should ralloc.c be used? (WAS: bug#24358), Eli Zaretskii, 2016/10/25
- Re: When should ralloc.c be used? (WAS: bug#24358), Richard Stallman, 2016/10/26
- Re: When should ralloc.c be used? (WAS: bug#24358), Perry E. Metzger, 2016/10/25
- Re: When should ralloc.c be used? (WAS: bug#24358), Eli Zaretskii, 2016/10/25
- Re: When should ralloc.c be used? (WAS: bug#24358),
Richard Stallman <=
- Re: When should ralloc.c be used?, Stefan Monnier, 2016/10/24