aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorSebastian Thiel <[email protected]>2017-03-07 07:39:25 +0100
committerSebastian Thiel <[email protected]>2017-03-07 07:39:25 +0100
commit463db85110658db729c722e6f2ef63fc67b4788b (patch)
tree535e4cde73887e3042948a708da965def7782e8e /openssl-sys/src
parentFix for empty stacks (diff)
downloadrust-openssl-463db85110658db729c722e6f2ef63fc67b4788b.tar.xz
rust-openssl-463db85110658db729c722e6f2ef63fc67b4788b.zip
Don't allow Stacks to be allocated with a null-ptr
The latter must be seen as undefined behaviour, as it will cause the `sk_num` function to return -1 to indicate the error, which causes all kinds of issues. Thus there now is a panic to abort the program if stacks are initialized with a null-ptr, and special handling of that case when decoding a Pkcs file.
Diffstat (limited to 'openssl-sys/src')
0 files changed, 0 insertions, 0 deletions