This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug string/16004] memcpy/strcpy: detect memory overlap and crash when error is detected


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

--- Comment #8 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
(In reply to Sergei Trofimovich from comment #7)

> This one looks like a scary use-after-free.

You are right. Bad example. Most of the real ones involve swap() with itself.

> Can you share an example if it's not too complex? 

I went back to look (google ref: b/3186945), and didn't find any. I must have
mis-remembered.


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

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]