-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ecp_sm2p256-armv8.pl: Copy the argument handling from ecp_nistz256 #21877
Conversation
I would mention in the commit message that popping the arguments to get the output file is more robust. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with an amended commit message
…mv8.pl Popping the $output argument is more robust and it also needs to be placed in double quotes to handle spaces in paths. Fixes openssl#21874 Fixes openssl#21876
@levitte commit message adjusted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, this is the way it's done in all the other *-armv8.pl
scripts, so it's good
Historically, we've had a mix of popping the output argument from the end of the argument list, or shifting from the start to find it... or none of them and always sending the output the STDOUT. This very much depended on when those scripts were authored and how the method for output had developed at that time. I did some sort of streamlining effort years ago, to at least make sure that they would all take an output file as last argument. It's possible, though, that they haven't all been streamlined to use the popping method. That could be a worthy endeavor if someone is inclined, as it would probably stop new perlasm scripts from being inspired by other scripts that don't use that methid. |
@levitte If you're happy with the commit message can you update the approval labels? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy
This pull request is ready to merge |
Merged to the master branch. Thank you for the reviews. |
…mv8.pl Popping the $output argument is more robust and it also needs to be placed in double quotes to handle spaces in paths. Fixes openssl#21874 Fixes openssl#21876 Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> (Merged from openssl#21877)
Fixes #21874
Fixes #21876