diff options
author | Pádraig Brady <P@draigBrady.com> | 2015-08-16 15:31:17 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-09-03 00:34:12 +0100 |
commit | a8cc9ce3f290a83dfb656dabfab2a98e765a68a0 (patch) | |
tree | 7c1a6fd442383b8aa6e494d18b0354b5719c712f /tests/dd/not-rewound.sh | |
parent | 89c517d9e26ad232d857ba37d897adbef19b30a9 (diff) | |
download | coreutils-a8cc9ce3f290a83dfb656dabfab2a98e765a68a0.tar.xz |
base64: use stricter validation on wrap column
* src/base64.c (main): Use the higher level xnumtoumax()
rather than xstrtoumax(), which is simpler and improves
validation of input. Also pass the _empty_ rather than NULL
string as the suffixes parameter so that invalid trailing
characters are not allowed. For example -w08 is now
flagged as an error, rather than being interpreted as 0.
A subsequent commit will further improve verification
of numbers with leading zeros by dropping backwards compatibility
wrt auto parsing oct and hex numbers.
* tests/misc/base64.pl: Add tests for invalid wrap values.
Diffstat (limited to 'tests/dd/not-rewound.sh')
0 files changed, 0 insertions, 0 deletions