diff options
author | Petr Gotthard <petr.gotthard@centrum.cz> | 2021-02-06 21:47:20 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2021-02-09 11:15:55 +0100 |
commit | 604b86d8d360e36fc2fc0d1611d05bf38699d297 (patch) | |
tree | 5969f02f05293556906af2a19a4a3066b331f8ad /util | |
parent | e60a748a13a244e8b13bacca18bad9bb3505aa90 (diff) |
Enhanced integer parsing in OSSL_PARAM_allocate_from_text
Fixes #14041 and additional bugs discovered by the newly created
tests.
This patch:
- Introduces support for 0x prefixed integers
- Fixes parsing of negative integers (negative numbers were
shifted by -2)
- Fixes ability to parse maximal unsigned numbers ("too small
buffer" error used to be reported incorrectly)
- Fixes a memory leak when OSSL_PARAM_allocate_from_text fails
leaving a temporary BN allocated
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14093)
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions