[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/31002] objcopy segfault in coff_apply_checksum
From: |
sam at gentoo dot org |
Subject: |
[Bug binutils/31002] objcopy segfault in coff_apply_checksum |
Date: |
Thu, 26 Oct 2023 21:03:03 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31002
--- Comment #1 from Sam James <sam at gentoo dot org> ---
Valgrind says:
```
==627627== Using Valgrind-3.22.0.RC2 and LibVEX; rerun with -h for copyright
info
==627627== Command: objcopy --add-section .osrel=os-release
--change-section-vma .osrel=0x14dfb4000 --add-section .cmdline=cmdline.txt
--change-section-vma .cmdline=0x14dfb5000 --add-section .linux=bzImage --
change-section-vma .linux=0x14dfb6000 --add-section .initrd=initramfs.img
--change-section-vma .initrd=0x14e950000 linuxx64.efi.stub linux.efi
==627627==
==627627== Invalid read of size 2
==627627== at 0x4A07A10: UnknownInlinedFun (coffcode.h:3338)
==627627== by 0x4A07A10: UnknownInlinedFun (coffcode.h:3378)
==627627== by 0x4A07A10: coff_apply_checksum.lto_priv.0.lto_priv.0
(coffcode.h:3417)
==627627== by 0x4A3A3FF: coff_write_object_contents.lto_priv.2
(coffcode.h:4273)
==627627== by 0x495F70B: bfd_close (opncls.c:892)
==627627== by 0x12491F: copy_file (objcopy.c:3967)
==627627== by 0x128939: UnknownInlinedFun (objcopy.c:6034)
==627627== by 0x128939: main (objcopy.c:6135)
==627627== Address 0x668c040 is 0 bytes after a block of size 8,388,608
alloc'd
==627627== at 0x4840938: malloc (vg_replace_malloc.c:442)
==627627== by 0x4A078D5: UnknownInlinedFun (libbfd.c:290)
==627627== by 0x4A078D5: UnknownInlinedFun (coffcode.h:3359)
==627627== by 0x4A078D5: coff_apply_checksum.lto_priv.0.lto_priv.0
(coffcode.h:3417)
==627627== by 0x4A3A3FF: coff_write_object_contents.lto_priv.2
(coffcode.h:4273)
==627627== by 0x495F70B: bfd_close (opncls.c:892)
==627627== by 0x12491F: copy_file (objcopy.c:3967)
==627627== by 0x128939: UnknownInlinedFun (objcopy.c:6034)
==627627== by 0x128939: main (objcopy.c:6135)
```
--
You are receiving this mail because:
You are on the CC list for the bug.