Details
-
Bug
-
Status: Closed
-
Urgent
-
Resolution: Fixed
-
3.1.1
-
None
Description
the script only-mvnw contains this snippet in a line to calculate a hash:
printf %d "'$str"
The idea is to convert $str to a number, where ' has a special meaning for %d conversion. However, there is a major problem with it:
It does not work on any ksh (and maybe other shells, too), because the behaviour of this conversion is undefined: https://pubs.opengroup.org/onlinepubs/9699919799/functions/printf.html
Instead, just do a conversion char-by-char.
Attachments
Issue Links
- links to