https://bugs.kde.org/show_bug.cgi?id=514094

--- Comment #16 from Mark Wielaard <[email protected]> ---
(In reply to Mark Wielaard from comment #15)
> I am going to try to backport this to the (not yet existing)
> VALGRIND_3_26_BRANCH because it can be considered a regression.

Pushed as one big squashed cherry-pick to the branch:

commit 7de247c998049db64c4df8cb8bc8e481493f3b8e
Author: Paul Floyd <[email protected]>
Date:   Sat Jan 3 18:24:34 2026 +0100

    readlink("/proc/self/exe") overwrites buffer beyond its return value

    https://bugs.kde.org/show_bug.cgi?id=514094

    Squashed cherry-picks:

    Solaris: set VG_(resolved_exename) in load_client()

      Haven't needed it yet, but I would like to try using it in the
      readlink syscall wrapper.

    (cherry picked from commit bf154d815a9fd7f4aaae97e31aa03cecf69448d4)

    Bug 514094 - readlink("/proc/self/exe") overwrites buffer beyond its return
value

      Used the reproducer as the basis for a test on Solaris and Linux.

    (cherry picked from commit 5c0f5e604bc3a4e8822ea59c488c123af6284afd)

    readlink[at] syswrap: limit copy to bufsiz when path is proc self exe

    (cherry picked from commit bd9edb8fcd0a8692d865e08fab2a573a4cde4c16)

    Regtest: add missing readlinkat_self files

    (cherry picked from commit 987034c44105cdc2f6f8d84751135d23bd5c37b6)

    regtest: fix warning

      Added a nice const named variable then didn't use it

    (cherry picked from commit dae37ecd2692e0e5beba77c296c2648ebbf47637)

    Fix bug514094,vgtest typo in none/tests/Makefile.am

    (cherry picked from commit 294742a2d9f431fd2dcd73db161f67fb12ddd833)

    syswrap readlink and linux readlinkat: check that buf is accessible for
proc self exe case

      Also update the t testcases to cover this.

    (cherry picked from commit 8d8023d107699c7c2d97acf2dcb77bae71c0b1cf)

    solaris readlinkat: check that buf is accessible for proc self path a.out

    (cherry picked from commit 827a1b8c307a2eafa001788565e14af3445f2151)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to