bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/29006] dll_symname use after free


From: Roland.Schwingel at onevision dot com
Subject: [Bug binutils/29006] dll_symname use after free
Date: Wed, 11 May 2022 13:32:00 +0000

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

--- Comment #9 from Roland Schwingel <Roland.Schwingel at onevision dot com> ---
(In reply to Nick Clifton from comment #6)
> (In reply to Roland Schwingel from comment #5)
> 
> Hi Roland,
> 
> > I maybe have the same or very similar problem. I already have applied the
> > patch to my binutils 2.38 but it still has the same problem.
> 
> No - this is a completely different bug, and a nasty one too.
> 
> The issue is that the dll_symname string is used by multiple functions 
> in ld/pe-dll.c, but it is only valid whilst the pe_process_import_defs()
> function is active.  Unfortunately the code in ld/emultemp/pep.em calls
> the function pe_find_data_imports() after pe_process_import_defs has
> finished, and this function ends up calling down several layers to a
> function that uses dll_symname.
> 
> I am not sure at this point, of the correct way to fix this problem.
> 
> Whilst I am thinking about it, do you have a test case that I can use
> to reproduce the bug ?
> 
> Cheers
>   Nick

Regarding testcase. 

The sources are covered by intellectual property. I cannot send them out.
But I think I could construct a reduction with a bunch of .o and .dll files and
than send it to you by personal email. I cannot put it here.

Would this be ok?

-- 
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]