You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we convert every line to a String, which has the disadvantage of not properly handling malformed UTF-8, even if it appears in an "irrelevant" place:
$ cat <<EOF | sed -re 's,xxx,\xff,' > sumsSHA256 (README.md) = 4d9b4c7b50b976ec5b0b2dce5a767d2da4b63eb68592017d475c4e11799a333c
# Comment shouldn't matter: >>xxx<<SHA256 (LICENSE) = 29953405eaa3dcc41c37d1621d55b6a47eee93e05613e439e73295029740b10cEOF
$ cksum --check sumsREADME.md: OKLICENSE: OK
$ cargo run -q cksum --check sumscksum: stream did not contain valid UTF-8[$? = 1]
It also isn't supported in other places during check:
$ echo'U0hBMjU2IChmdW5ref9uYW1lKSA9IDI5OTUzNDA1ZWFhM2RjYzQxYzM3ZDE2MjFkNTViNmE0N2VlZTkzZTA1NjEzZTQzOWU3MzI5NTAyOTc0MGIxMGMK'| base64 -d > sums
$ cksum -c sums cksum: 'funky'$'\377''name': No such file or directoryfunky�name: FAILED open or readcksum: WARNING: 1 listed file could not be read[$? = 1]
$ cargo run -q cksum -c sums cksum: stream did not contain valid UTF-8[$? = 1]
The text was updated successfully, but these errors were encountered:
Currently, we convert every line to a
String
, which has the disadvantage of not properly handling malformed UTF-8, even if it appears in an "irrelevant" place:It also isn't supported in other places during
check
:The text was updated successfully, but these errors were encountered: