SwayAudioIdleInhibit icon indicating copy to clipboard operation
SwayAudioIdleInhibit copied to clipboard

Safe handling of ignoredSourceOutputs array

Open Maksym-L opened this issue 3 months ago • 2 comments

GH issue: https://github.com/ErikReider/SwayAudioIdleInhibit/issues/7

I am adding safe(ish) memory handling for the ignoredSourceOutputs array. It fixes "segfault" caused by out-of-bound index access.

(gdb) p data->ignoredSourceOutputs[1]
$4 = 0x69682ac <error: Cannot access memory at address 0x69682ac>

Maksym-L avatar Mar 21 '24 23:03 Maksym-L