DavidGriffith / daphne

First Ever Multiple Arcade Laserdisc Emulator
http://www.daphne-emu.com
GNU General Public License v2.0
24 stars 7 forks source link

'segfault' on SDL overlay caused by a negative vertical offset value #9

Closed DirtBagXon closed 4 years ago

DirtBagXon commented 4 years ago

when utilised in palette = &yuv_palette[*gamevid_pixels]

We now negate the negation on calculation .... so that *gamevid_pixels is correctly set in prepare_frame_callback_with_overlay()

Fixes: astron, bega, cobraab, esh, galaxy, gpworld, interstellar & roadblaster

Reading symbols from /home/user/Games/Daphne/daphne.bin...done. [New LWP 6945] [New LWP 6939] [New LWP 6944] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `./daphne.bin astron vldp -framefile /home/user/.daphne/vldp/astron/astron.txt -h'. Program terminated with signal SIGSEGV, Segmentation fault. at ldp-vldp.cpp:1780 1780 palette = &yuv_palette[*gamevid_pixels]; [Current thread is 1 (Thread 0x7f2bf0d74700 (LWP 6945))] (gdb) bt at ldp-vldp.cpp:1780 at vldp/vldp_internal.c:171 at pthread_create.c:456 at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97 (gdb) quit