diff options
| author | Sebastian Thiel <[email protected]> | 2017-03-07 07:39:25 +0100 |
|---|---|---|
| committer | Sebastian Thiel <[email protected]> | 2017-03-07 07:39:25 +0100 |
| commit | 463db85110658db729c722e6f2ef63fc67b4788b (patch) | |
| tree | 535e4cde73887e3042948a708da965def7782e8e /openssl-sys/src | |
| parent | Fix for empty stacks (diff) | |
| download | rust-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