[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/22444] Incorrect note padding check
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug binutils/22444] Incorrect note padding check |
Date: |
Thu, 16 Nov 2017 20:50:33 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22444
--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 10603
--> https://sourceware.org/bugzilla/attachment.cgi?id=10603&action=edit
A testcase
Without my patch:
address@hidden pr22444]$ readelf -n x.o
Displaying notes found in: .note.GNU
Owner Data size Description
GNU 0x0000000c Unknown note type: (0x0000000a)
Description data: 00 00 00 00 01 00 00 00 02 00 00 00
(NONE) 0x00000004 Unknown note type: (0x00000008)
description data: 05 00 00 00
readelf: Warning: note with invalid namesz and/or descsz found at offset 0x2c
readelf: Warning: type: 0x0, namesize: 0x00554e47, descsize: 0x00000002
address@hidden pr22444]$
With my patch:
address@hidden pr22444]$ ./readelf -n x.o
Displaying notes found in: .note.GNU
Owner Data size Description
GNU 0x0000000c Unknown note type: (0x0000000a)
Description data: 00 00 00 00 01 00 00 00 02 00 00 00
GNU 0x00000008 NT_GNU_PROPERTY_TYPE_0
Properties: no copy on protected
address@hidden pr22444]$
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/22444] New: Incorrect note padding check, hjl.tools at gmail dot com, 2017/11/15
- [Bug binutils/22444] Incorrect note padding check, hjl.tools at gmail dot com, 2017/11/15
- [Bug binutils/22444] Incorrect note padding check, fweimer at redhat dot com, 2017/11/15
- [Bug binutils/22444] Incorrect note padding check, fweimer at redhat dot com, 2017/11/15
- [Bug binutils/22444] Incorrect note padding check, address@hidden, 2017/11/16
- [Bug binutils/22444] Incorrect note padding check, hjl.tools at gmail dot com, 2017/11/16
- [Bug binutils/22444] Incorrect note padding check, hjl.tools at gmail dot com, 2017/11/16
- [Bug binutils/22444] Incorrect note padding check, address@hidden, 2017/11/16
- [Bug binutils/22444] Incorrect note padding check, hjl.tools at gmail dot com, 2017/11/16
- [Bug binutils/22444] Incorrect note padding check, hjl.tools at gmail dot com, 2017/11/16
- [Bug binutils/22444] Incorrect note padding check,
hjl.tools at gmail dot com <=
- [Bug binutils/22444] Incorrect note padding check, hjl.tools at gmail dot com, 2017/11/24
- [Bug binutils/22444] Incorrect note padding check, cvs-commit at gcc dot gnu.org, 2017/11/24