Fix OSSL_PARAM_allocate_from_text() to do sign extension#17104
Fix OSSL_PARAM_allocate_from_text() to do sign extension#17104levitte wants to merge 4 commits intoopenssl:masterfrom
Conversation
…size ints With arbitrary size ints, we get to know exactly how large the minimum buffer must be.
…mber When the parameter definition has the data type OSSL_PARAM_UNSIGNED_INTEGER, negative input values should not be accepted. Fixes openssl#17103
This is done for the data type OSSL_PARAM_INTEGER by checking if the most significant bit is set, and adding 8 to the number of buffer bits if that is the case. Everything else is already in place. Fixes openssl#17103
|
|
This looks like a feature, so not for 3.0. Anyone think differently? |
|
Go look at #17103, then decide if you think this is a bugfix or an added feature. (I think it's a bugfix) |
|
OTC question: bug fix or feature? |
|
OTC:Bug fix |
…size ints With arbitrary size ints, we get to know exactly how large the minimum buffer must be. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from #17104)
This is done for the data type OSSL_PARAM_INTEGER by checking if the most significant bit is set, and adding 8 to the number of buffer bits if that is the case. Everything else is already in place. Fixes #17103 Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from #17104)
|
Merged master: 3.0: |
This is done for the data type OSSL_PARAM_INTEGER by checking if the most significant bit is set, and adding 8 to the number of buffer bits if that is the case. Everything else is already in place. Fixes #17103 Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from #17104) (cherry picked from commit 946bc0e)
OSSL_PARAM_allocate_from_text() doesn't do sign extension when it should.
See #17103.