summaryrefslogtreecommitdiff
path: root/src/math/__sinl.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-07-19 20:00:11 -0400
committerRich Felker <dalias@aerifal.cx>2013-07-19 20:00:11 -0400
commit8389520ed5ad6f0033d6426e21ef653fa5ca26a4 (patch)
treed953686de75caed19c0bc83ab43b258052f2016f /src/math/__sinl.c
parent41e2fd9d529b00b8532e7170e3cdae0d5d6c6424 (diff)
downloadmusl-8389520ed5ad6f0033d6426e21ef653fa5ca26a4.tar.gz
harden realloc/free to detect simple overflows
the sizes in the header and footer for a chunk should always match. if they don't, the program has definitely invoked undefined behavior, and the most likely cause is a simple overflow, either of a buffer in the block being freed or the one just below it. crashing here should not only improve security of buggy programs, but also aid in debugging, since the crash happens in a context where you have a pointer to the likely-overflowed buffer.
Diffstat (limited to 'src/math/__sinl.c')
0 files changed, 0 insertions, 0 deletions