https://bugs.freedesktop.org/show_bug.cgi?id=71750

Kristian Høgsberg <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Kristian Høgsberg <[email protected]> ---
Memory corruption fixed by

commit a548b4b85cfdbef103f622c3e3aaf976938535f9
Author: Kristian Høgsberg <[email protected]>
Date:   Thu Jan 9 23:39:20 2014 -0800

    keyboard: Fix insert_text() string utility

    strncat() into a newly allocated buffer isn't well-defined.  I don't know
    how this didn't crash all the time, getting blocks from malloc() with
    a NUL in the first byte must be fairly common.

    Closes: https://bugs.freedesktop.org/show_bug.cgi?id=71750

and

commit 700d6ad071614895c3cb305b894b8c1a003db39e
Author: Kristian Høgsberg <[email protected]>
Date:   Thu Jan 9 23:45:18 2014 -0800

    keyboard: Don't strcat() into a strdup()ed string

    We need to reallocate the memory to hold the entire concatenated string,
    but strcat() doesn't do that.

    Closes: https://bugs.freedesktop.org/show_bug.cgi?id=71750

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Wayland-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to