https://sourceware.org/bugzilla/show_bug.cgi?id=33968
Bug ID: 33968
Summary: elf_update (elf, ELF_C_NULL) might crash for Elf files
opened with ELF_C_READ_MMAP
Product: elfutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libelf
Assignee: unassigned at sourceware dot org
Reporter: mark at klomp dot org
CC: elfutils-devel at sourceware dot org
Target Milestone: ---
While testing bug #33967 found that elf_update (elf, ELF_C_NULL) might crash
when updating the Ehdr fields (like e_shoff). This can be replicated with the
same testcase as in bug #33967 by using ELF_C_READ_MMAP instead of
ELF_C_READ_MMAP_PRIVATE.
This shouldn't crash, it should either fail because the underlying Elf is
read-only or we need to make a copy of the Ehdr before updating it.
--
You are receiving this mail because:
You are on the CC list for the bug.