Re:A tiny Unix dynamic memory allocator library
by spc476 on Saturday September 23, 2017 @03:29AM
(#15318652)
The author of this could have picked a better value to fill in the guard area. For the x86 architecture, 0xCC is a good choice. It's an unusual negative value, a largish unsigned value, most likely an invalid address (if dereferenced as a pointer) and if executed, is the INT 3 breakpoint instruction. Other architectures would require different values, but at least pick one that has a good chance of blowing something up if used.
[ Parent
| on HN ]
There are no comments on this comment yet.