Closed leegao closed 1 year ago
https://file.io/gaopxTIhhwlY for my shortcuts.vdf in case you want to reproduce this
https://file.io/gaopxTIhhwlY for the core file + the SGDBoop binary that you can gdb to inspect as well
I've been on the road so haven't been able to reply to this. Thank you so much, the fix worked perfectly!
Environment: Steam Deck (archlinux), SGDBoop is from the website as of 9/2/23
Trigger: xdg-open sgdb://boop/steam,steam,steam,steam,steam/298110-header-en,298110-capsule-en,298110-hero-en,298110-logo-en,298110-clienticon-en/nonsteam
I got a segfault, looking at coredumpctl and rewinding the crash in gdb, I see the segfault happening here:
matching this up with the source code, it looks like the segfault occurs here (note that strstr for single char strings get optimized to strchr)
mainly, tagsPtr returned a
nullptr
. I think myshortcuts.vdf
is just janky.That said, it'd be good to do a nullptr check for tagsPtr (and appidPtr) and skip this entry if this loop fails.
dumpinfo.txt