summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa/rsa_eay.c
diff options
context:
space:
mode:
authorotto <>2017-01-21 07:47:42 +0000
committerotto <>2017-01-21 07:47:42 +0000
commit2fab07685aec49694184f0859caa564a3f0db47b (patch)
tree227b544524386f440e7e8e9a75ce954ea08bdfa4 /src/lib/libcrypto/rsa/rsa_eay.c
parent85977a5fc077a3570226e3ec00bf221c6c1951cd (diff)
downloadopenbsd-2fab07685aec49694184f0859caa564a3f0db47b.tar.gz
openbsd-2fab07685aec49694184f0859caa564a3f0db47b.tar.bz2
openbsd-2fab07685aec49694184f0859caa564a3f0db47b.zip
1. When shrinking a chunk allocation, compare the size of the current
allocation to the size of the new allocation (instead of the requested size). 2. Previously realloc takes the easy way and always reallocates if C is active. This commit fixes by carefully updating the recorded requested size in all cases, and writing the canary bytes in the proper location after reallocating. 3. Introduce defines to test if MALLOC_MOVE should be done and to compute the new value.
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_eay.c')
0 files changed, 0 insertions, 0 deletions