bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/21342] New: two member access within null pointer


From: ago at gentoo dot org
Subject: [Bug ld/21342] New: two member access within null pointer
Date: Sat, 01 Apr 2017 16:38:31 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=21342

            Bug ID: 21342
           Summary: two member access within null pointer
           Product: binutils
           Version: 2.28
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: ago at gentoo dot org
  Target Milestone: ---

To reproduce this bug you need to compile binutils with -fsanitize=undefined

# echo "int main () { return 0; }" > test.c                                     
# cc test.c -o test
/tmp/portage/sys-devel/binutils-2.28/work/binutils-2.28/bfd/elflink.c:124:12:
runtime error: member access within null pointer of type 'struct
elf_link_hash_entry'                            

/tmp/portage/sys-devel/binutils-2.28/work/binutils-2.28/bfd/elflink.c:11979:58:
runtime error: member access within null pointer of type 'elf_section_list'
(aka 'struct elf_section_list')    

# gcc -v
gcc version 4.9.4 (Gentoo 4.9.4 p1.0, pie-0.6.4)

# ld -v
GNU ld (Gentoo 2.28 p1.0) 2.28

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]