Skip to content

Conversation

@richsalz
Copy link
Contributor

Thanks to Nicolas Schodet for pointing this out.

Fixes #5066. For all releases.

@richsalz richsalz added branch: master Applies to master branch branch: 1.0.2 Applies to OpenSSL_1_0_2-stable branch (EOL) 1.1.0 approval: review pending This pull request needs review by a committer labels Jan 22, 2018
@richsalz richsalz self-assigned this Jan 22, 2018
Thanks to Nicolas Schodet for pointing this out.
@richsalz
Copy link
Contributor Author

sorry, one last time please @t-j-h :)

BN_get_word() returns the value B<a>, and 0xffffffffL if B<a> cannot
be represented as an unsigned long.
BN_get_word() returns the value B<a>, or all-bits-set if B<a> cannot
be represented as a single integer.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So how does one check this in a portable way?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

~(BN_LONG)0 or if retval+1==0

@kaduk
Copy link
Contributor

kaduk commented Jan 23, 2018

Didn't this whole exercise start out from a complaint that BN_LONG is not a thing in the public headers anymore (and in fact not at all, since commit 94af0cd, by you)?

@richsalz
Copy link
Contributor Author

I think you read too quickly; BN_ULONG not BN_LONG :)

levitte pushed a commit that referenced this pull request Jan 23, 2018
Thanks to Nicolas Schodet for pointing this out.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from #5141)
@richsalz richsalz added approval: done This pull request has the required number of approvals and removed branch: 1.0.2 Applies to OpenSSL_1_0_2-stable branch (EOL) 1.1.0 approval: review pending This pull request needs review by a committer labels Jan 23, 2018
@richsalz
Copy link
Contributor Author

Merged to master. Separate PR coming for 1.1.0/1.0.2

@richsalz richsalz closed this Jan 23, 2018
@richsalz richsalz deleted the gh5066 branch January 23, 2018 15:00
@richsalz richsalz mentioned this pull request Jan 23, 2018
levitte pushed a commit that referenced this pull request Jan 24, 2018
Backport from #5141

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from #5151)
levitte pushed a commit that referenced this pull request Jan 24, 2018
Backport from #5141

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from #5151)

(cherry picked from commit 8b2124a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval: done This pull request has the required number of approvals branch: master Applies to master branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants