xedit: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Sep 16 00:25:47 UTC 2019


 util.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 420fa2a8a4dd7294d0b23696103d7887ae570e43
Author: Niclas Zeising <zeising at daemonic.se>
Date:   Wed Sep 11 22:30:16 2019 +0200

    Fix segfault when tags file isn't found
    
    Fix a segfault when the tags file isn't found.  xedit tries to construct
    a path to the tags file (by defailt ${HOME}/tags), using amongst other
    things basename(3).  However, basename is called with an immutable
    string which causes segfaults on FreeBSD, since basename(3) uses the
    provided buffer to store it's result.
    Change the code to duplicate the string with strdup() and call basename
    on the duplicated string instead.



More information about the xorg-commit mailing list