zstd icon indicating copy to clipboard operation
zstd copied to clipboard

More checks on numeric input for `zstd` CLI

Open IAL32 opened this issue 3 years ago • 0 comments

Closes https://github.com/facebook/zstd/issues/3070

  • Added check for a possible invalid combination of numeric values in zstd CLI
  • Does not perfectly cover all invalid combinations, but it's better than before
  • Added some tests
  • Slightly changes --memory, --memlimit and --memlimit-decompress to only be used with = at the end of the parameter
  • memLimit type changed from unsigned to size_t to be more in line with srcSizeHint, as both refer to memory values

IAL32 avatar Mar 01 '22 14:03 IAL32