summaryrefslogtreecommitdiffstats
path: root/libebl/eblelfclass.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2018-08-18 12:42:16 +0200
committerMark Wielaard <[email protected]>2018-08-18 12:42:16 +0200
commit56b18521fb8d46d40fc090c0de9d11a08bc982fa (patch)
tree7da21f9eb730308766f7ccd282ebd628fb1070e7 /libebl/eblelfclass.c
parent7df3138246193c5d72b53fe789457114ecf071cb (diff)
libelf: Return error if elf_compress_gnu is used on SHF_COMPRESSED section.
Compressing a section that is already compressed is fine, but useless. But it isn't possible to gnu compress (or decompress) a SHF_COMPRESSED section since there is no state kept that would tell if the section was first GNU compressed or first gabi compressed. Calling elf_compress_gnu on a section and then calling elf_compress on it to decompress it twice could cause a crash (the other way around is fine). Just disallow it. https://sourceware.org/bugzilla/show_bug.cgi?id=23528 Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libebl/eblelfclass.c')
0 files changed, 0 insertions, 0 deletions