Skip to content

Conversation

@richsalz
Copy link
Contributor

@richsalz richsalz commented Dec 8, 2017

This is the #4872 done for 1.0.2

@richsalz richsalz added branch: 1.0.2 Applies to OpenSSL_1_0_2-stable branch (EOL) approval: review pending This pull request needs review by a committer labels Dec 8, 2017
@richsalz richsalz self-assigned this Dec 8, 2017
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as in #4876, but three occurrences here...

Copy link
Contributor

Choose a reason for hiding this comment

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

If cross-compared to master, it might be more appropriate to dismiss this comment, even in #4876. I mean it's probably more appropriate to address it separately [if at all].

Copy link
Contributor

Choose a reason for hiding this comment

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

Jagged comment

test/igetest.c Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

This aint right. It's sizeof(v->key), not sizeof(v)->key.

test/igetest.c Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above.

@richsalz
Copy link
Contributor Author

richsalz commented Dec 8, 2017

I don't want to fix anything other than the sizeof uses here.
I did fix the two syntax errors in igetest and pushed an updated commit.

@richsalz
Copy link
Contributor Author

richsalz commented Dec 8, 2017

Also fixed the "jagged comment" in crypto/ec/ec_mult.c

RAND_seed(rnd_seed, sizeof rnd_seed); /* or BN_rand may fail, and we
RAND_seed(rnd_seed, sizeof(rnd_seed)); /* or BN_rand may fail, and we
* don't even check its return
* value (which we should) */
Copy link
Contributor

Choose a reason for hiding this comment

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

Another jagged comment... Even in #4876...


if (setsockopt
(nSocket, SOL_SOCKET, SO_REUSEADDR, (char *)&one, sizeof one) < 0) {
(nSocket, SOL_SOCKET, SO_REUSEADDR, (char *)&one, sizeof(one)) < 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

That's an incompliant formatting! Side note!

@richsalz
Copy link
Contributor Author

richsalz commented Dec 8, 2017

Added commit to fix the exptest comment-wrapping issue.

@dot-asm dot-asm added approval: done This pull request has the required number of approvals and removed approval: review pending This pull request needs review by a committer labels Dec 8, 2017
levitte pushed a commit that referenced this pull request Dec 8, 2017
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from #4875)
@richsalz
Copy link
Contributor Author

richsalz commented Dec 8, 2017

Thanks for the feedback; merged to 1.0.2

@richsalz richsalz closed this Dec 8, 2017
@richsalz richsalz deleted the sizeof-for-102 branch December 8, 2017 20:10
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: 1.0.2 Applies to OpenSSL_1_0_2-stable branch (EOL)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants