Skip to content

exo-die: Fix string leak in exo_die_g_key_file_set_locale_value

correctmost requested to merge correctmost/exo:cm/fix-string-leak into master

Leak report

Direct leak of 77 byte(s) in 5 object(s) allocated from:
    #0 0x786fc24fd891 in malloc /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x786fbda97438  (/usr/lib/libc.so.6+0x88438)
    #2 0x786fc2487d98 in vasprintf /usr/src/debug/gcc/gcc/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:1680
    #3 0x786fbedea5af in g_vasprintf glib/gprintf.c:341
    #4 0x786fbed21cb0 in g_strdup_vprintf glib/gstrfuncs.c:511
    #5 0x786fbed21e40 in g_strdup_printf glib/gstrfuncs.c:541
    #6 0x5fa5614694c8 in exo_die_g_key_file_set_locale_value exo/exo-desktop-item-edit/exo-die-utils.c:61
    #7 0x5fa56146bf55 in main exo/exo-desktop-item-edit/main.c:483

Steps to reproduce

  • Right-click on the desktop and select Create URL Link
  • Fill in the fields and click Create

Testing

  • No issues were detected when testing the patch with UBSan, LSan, and ASan

Merge request reports

Loading