commit | fa650493ef9f8f9aa4cdae0cc5c27f470293f2c0 | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Thu Oct 01 00:25:03 2020 |
committer | Eryu Guan <guaneryu@gmail.com> | Sun Oct 11 03:27:38 2020 |
tree | 434f0ba5831e14daeb3e6c004ff6114e0170ae50 | |
parent | 72a84addd22781b0d322547c532c3950b49e3802 [diff] |
fscrypt-crypt-util: clean up parsing --block-size and --inode-number For --block-size, check for strtoul() reporting an overflow. For --inode-number, check for strtoull() reporting an overflow. Also, move the check for 32-bit inode numbers into a more logical place (the place where we check the encryption format-specific limitations). Signed-off-by: Eric Biggers <ebiggers@google.com> Reviewed-by: Daeho Jeong <daeho43@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>