Debian Bug report logs -
#725729
abootimg: will produce non-functional images on a big-endian machine
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Heiko Stuebner <mmind@debian.org>:
Bug#725729; Package abootimg.
(Mon, 07 Oct 2013 19:06:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Simon McVittie <simon.mcvittie@collabora.co.uk>:
New Bug report received and forwarded. Copy sent to Heiko Stuebner <mmind@debian.org>.
(Mon, 07 Oct 2013 19:06:06 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: abootimg
Version: 0.6-1
Severity: normal
Tags: upstream
By inspection of its source code, abootimg has the same bug as Android
mkbootimg: because it writes host structs directly into the file,
if the size or endianness of any of the integers in those structs does
not match the expected size/endianness (4-byte int, little-endian),
the image will be misinterpreted by the Android device.
Another possibility would be to only build abootimg on little-endian
platforms (any-i386, any-amd64, armel, armhf, mipsel etc., but not
powerpc).
-- System Information:
Debian Release: jessie/sid
APT prefers proposed-updates
APT policy: (500, 'proposed-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.10-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Information forwarded
to debian-bugs-dist@lists.debian.org, Heiko Stuebner <mmind@debian.org>:
Bug#725729; Package abootimg.
(Sat, 30 Nov 2013 17:03:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Gilles Grandou <gilles@grandou.net>:
Extra info received and forwarded to list. Copy sent to Heiko Stuebner <mmind@debian.org>.
(Sat, 30 Nov 2013 17:03:04 GMT) (full text, mbox, link).
Message #10 received at 725729@bugs.debian.org (full text, mbox, reply):
On 07/10/2013 20:52, Simon McVittie wrote:
> Package: abootimg
> Version: 0.6-1
> Severity: normal
> Tags: upstream
>
> By inspection of its source code, abootimg has the same bug as Android
> mkbootimg: because it writes host structs directly into the file,
> if the size or endianness of any of the integers in those structs does
> not match the expected size/endianness (4-byte int, little-endian),
> the image will be misinterpreted by the Android device.
I agree, but as I don't have any big-endian system under my hand, I
won't be able to test it. Patches are welcome ;)
> Another possibility would be to only build abootimg on little-endian
> platforms (any-i386, any-amd64, armel, armhf, mipsel etc., but not
> powerpc).
It would make sense. I don't see any usage case where you would like to
manipulate Android boot image from a bigendian host...
Thanks,
Gilles.
Added indication that 725729 affects diffoscope
Request was from Mattia Rizzolo <mattia@debian.org>
to control@bugs.debian.org.
(Wed, 27 Dec 2017 14:00:04 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed May 17 13:47:27 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.