Skip to content

mime: Fix argument string leaks

Leak report

Direct leak of 11 byte(s) in 1 object(s) allocated from:
    #0 0x7f25f28fd891 in malloc /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x7f25ef0b8b87 in g_malloc glib/gmem.c:100
    #2 0x7f25ef120fe2 in g_strndup glib/gstrfuncs.c:419
    #3 0x7f25ef00b909 in strdup_len glib/gconvert.c:803
    #4 0x7f25ef00dc79 in g_locale_to_utf8 glib/gconvert.c:925
    #5 0x7f25ef0ce0d2 in parse_arg glib/goption.c:1131
    #6 0x7f25ef0d1d92 in parse_long_option glib/goption.c:1522
    #7 0x7f25ef0dd055 in g_option_context_parse glib/goption.c:1896
    #8 0x5961bd8f97ca in main xfce4-settings/dialogs/mime-settings/xfce-mime-helper-main.c:143

Steps to reproduce

  1. Run xfce4-mime-helper --query help

Testing

  • No issues were detected when testing the exit paths with ASan + LSan

Merge request reports

Loading