summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dsa
diff options
context:
space:
mode:
authorotto <>2017-01-21 07:47:42 +0000
committerotto <>2017-01-21 07:47:42 +0000
commit9d0ad2ad94663962dbaafbd967e30ac985f4dc22 (patch)
tree227b544524386f440e7e8e9a75ce954ea08bdfa4 /src/lib/libcrypto/dsa
parent400845e1477525baae7acfc08b6aa9ae7e646465 (diff)
downloadopenbsd-9d0ad2ad94663962dbaafbd967e30ac985f4dc22.tar.gz
openbsd-9d0ad2ad94663962dbaafbd967e30ac985f4dc22.tar.bz2
openbsd-9d0ad2ad94663962dbaafbd967e30ac985f4dc22.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/dsa')
0 files changed, 0 insertions, 0 deletions