Package: yad
Version: 7.2-1
Severity: normal

When attempting an example from the manpage: yad --icons 
--read-dir=/usr/share/applications

  (gdb) bt
  #0  __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:76
  #1  0x0000555555571dfe in parse_desktop_file (filename=0x555555933a00 
"/usr/share/applications/qemu.desktop") at ./src/icons.c:333
  #2  read_dir () at ./src/icons.c:408
  #3  0x00005555555721ea in icons_create_widget (dlg=dlg@entry=0x5555556a9280) 
at ./src/icons.c:500
  #4  0x000055555557f133 in create_layout (dlg=dlg@entry=0x5555556a9280) at 
./src/main.c:244
  #5  0x000055555556a520 in create_dialog () at ./src/main.c:390
  #6  main (argc=<optimized out>, argv=<optimized out>) at ./src/main.c:863

Version 0.40.0-1+b1 also behaves identically.

Surely it's not as idiotic a bug as failing to ensure that
g_key_file_get_string() returns non-NULL?

FWIW qemu.desktop looks like this:

  [Desktop Entry]
  Version=1.0
  Name=QEMU
  Icon=qemu
  Type=Application
  Terminal=false
  Keywords=Emulators;Virtualization;KVM;
  NoDisplay=true

Yes, the missing 'Exec' key violates the Freedesktop spec, however the qemu
maintainers (in #1040378) seem to think this is fine. Either way, yad should
still not crash in the face of mildly malformed input.

-- System Information:
Debian Release: trixie/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable-debug'), (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 
'stable'), (500, 'oldstable'), (490, 'testing-debug'), (490, 'testing'), (400, 
'unstable-debug'), (400, 'unstable'), (1, 'experimental-debug'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.11.2-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages yad depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.40.0-4
ii  libc6                                        2.40-3
ii  libcairo2                                    1.18.2-2
ii  libgdk-pixbuf-2.0-0                          2.42.12+dfsg-1
ii  libglib2.0-0t64 [libglib2.0-0]               2.82.1-1
ii  libgtk-3-0t64 [libgtk-3-0]                   3.24.43-4
ii  libpango-1.0-0                               1.54.0+ds-3
ii  libpangocairo-1.0-0                          1.54.0+ds-3

yad recommends no packages.

yad suggests no packages.

-- debconf-show failed

-MD

-- 
-----------------------------------------------------------------------------
Michael Deegan               Hugaholic              https://www.deegan.id.au/
------------------------  Jung, zr jbeel?  ----------------------------------

Reply via email to