summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_packet.c
diff options
context:
space:
mode:
authorjsing <>2017-09-25 18:02:27 +0000
committerjsing <>2017-09-25 18:02:27 +0000
commitf54ad548bde724826978bddf2ca35ee99e62f3aa (patch)
tree42d6703c344d9eccc786a01354471588f9f39675 /src/lib/libssl/ssl_packet.c
parent262ac3c2783343b86e656bc94f50df32a353cd11 (diff)
downloadopenbsd-f54ad548bde724826978bddf2ca35ee99e62f3aa.tar.gz
openbsd-f54ad548bde724826978bddf2ca35ee99e62f3aa.tar.bz2
openbsd-f54ad548bde724826978bddf2ca35ee99e62f3aa.zip
Fix various issues in the OCSP extension parsing code:
- When parsing the OCSP extension we can have multiple responder IDs - pull these out correctly. - Stop using CBS_stow() - it's unnecessary since we just need access to the data and length (which we can get via CBS_data() and CBS_len()). - Use a temporary pointer when calling d2i_*() functions, since it will increment the pointer by the number of bytes it consumed when decoding. The original code incorrectly passes the pointer allocated via CBS_stow() (using malloc()) to a d2i_*() function and then calls free() on the now incremented pointer, most likely resulting in a crash. This issue was reported by Robert Swiecki who found the issue using honggfuzz. ok beck@
Diffstat (limited to 'src/lib/libssl/ssl_packet.c')
0 files changed, 0 insertions, 0 deletions