summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenys Vlasenko2013-03-27 15:15:33 +0100
committerDenys Vlasenko2013-03-27 15:15:33 +0100
commitef6747e290d0456d140129f28283e0761713da2e (patch)
treeb7bdf26c8e72e232cb8567bbbc2b1806ed3986ef /util-linux
parent80a38ca11c3c9e0fdef07ad3fc908aa54afb4386 (diff)
downloadbusybox-ef6747e290d0456d140129f28283e0761713da2e.zip
busybox-ef6747e290d0456d140129f28283e0761713da2e.tar.gz
hexdump: don't unconditionally limit the usable address range
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/hexdump.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/util-linux/hexdump.c b/util-linux/hexdump.c
index 9a312f9..43fc188 100644
--- a/util-linux/hexdump.c
+++ b/util-linux/hexdump.c
@@ -116,7 +116,12 @@ int hexdump_main(int argc, char **argv)
dumper->dump_length = xatoi_positive(optarg);
} /* else */
if (ch == 's') { /* compat: -s accepts hex numbers too */
- dumper->dump_skip = xstrtoul_range_sfx(optarg, /*base:*/ 0, /*lo:*/ 0, /*hi:*/ LONG_MAX, suffixes);
+ dumper->dump_skip = xstrtoul_range_sfx(
+ optarg,
+ /*base:*/ 0,
+ /*lo:*/ 0, /*hi:*/ OFF_T_MAX,
+ suffixes
+ );
} /* else */
if (ch == 'v') {
dumper->dump_vflag = ALL;