From ef6747e290d0456d140129f28283e0761713da2e Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 27 Mar 2013 15:15:33 +0100 Subject: hexdump: don't unconditionally limit the usable address range Signed-off-by: Denys Vlasenko --- util-linux/hexdump.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'util-linux/hexdump.c') diff --git a/util-linux/hexdump.c b/util-linux/hexdump.c index 9a312f95c..43fc188bf 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; -- cgit v1.2.3