On Thu, Apr 16, 2015 at 04:51:47PM +0200, Maros Zatko wrote:
Patch extracts MSB/LSB info from /bin/file output and prepends it
to elf_arch. Then it is sent to impl_file_architecture and checked.
Now using guestfs_int_safe_asprintf instead of malloc + snprintf.
Modified magic_for_file.
Fixes: RHBZ#1211996
I've added test binaries to the tests/data/ directory:
https://github.com/libguestfs/libguestfs/commit/58bbb93a2514d4c40ea969aaa...
So you'll be able to extend the file_architecture test in
generator/actions.ml with a regression test.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html