Commit 3fde6c92 authored by Matt Caswell's avatar Matt Caswell
Browse files

Avoid undefined behaviour in PACKET_buf_init



Change the sanity check in PACKET_buf_init to check for excessive length
buffers, which should catch the interesting cases where len has been cast
from a negative value whilst avoiding any undefined behaviour.

RT#4094

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent 788d72ba
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment