AW: [PATCH] hexdump: don't unconditionally limit the usable address range

dietmar.schindler at manroland-web.com dietmar.schindler at manroland-web.com
Tue Apr 2 07:54:08 UTC 2013


> Von: Denys Vlasenko [mailto:vda.linux at googlemail.com]
> Gesendet: Mittwoch, 27. März 2013 15:19
>
> On Fri, Mar 22, 2013 at 2:00 PM,  <dietmar.schindler at manroland-web.com>
> wrote:
> > For example the command
> >
> >         hexdump -s 0xc0216000 /dev/kmem | head -1
> >
> > outputs
> >
> >         hexdump: number 0xc0216000 is not in 0..2147483647 range
> >
> > without the patch, and
> >
> >         c0216000 7d61 5b78 4e80 0020 7c08 02a6 9001 0004
> >
> > with it (compiled with CFLAGS="-D_LARGEFILE_SOURCE -
> D_FILE_OFFSET_BITS=64").
>
> Applied a simpler fix. Thanks. Please try current git.

Are there certain config options required? - I get

        hexdump: number 0xc0216000 is not in 0..2147483647 range

without additional compiler options, while the translation of busybox fails with

          CC      applets/applets.o
        In file included from include/busybox.h:8,
                         from applets/applets.c:9:
        include/libbb.h:256: error: size of array 'BUG_off_t_size_is_misdetected' is negative
        make[1]: *** [applets/applets.o] Error 1
        make: *** [applets_dir] Error 2

when compiling with CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64".

--
Best regards,
Dietmar Schindler
________________________________________
manroland web systems GmbH -- Managing Director: Eckhard Hoerner-Marass
Registered Office: Augsburg -- Trade Register: AG Augsburg -- HRB-No. 26816 -- VAT: DE281389840

Confidentiality note:
This eMail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you have received this eMail in error, then please delete this eMail.

! Please consider your environmental responsibility before printing this eMail
________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ATT06187.config
Type: application/octet-stream
Size: 26293 bytes
Desc: ATT06187.config
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20130402/7c3d1489/attachment-0001.obj>


More information about the busybox mailing list