|クラッシュ/フリーズ||重要 (本体)||解決済み||修正済み||2008-07-04 01:31||2008-07-06 15:19|
|概 要||output.c unregister_clientのクラッシュ。|
|詳 細||I submitted a diff to email@example.com, but thought you might like it submitted here too for tracking purposes.|
My app is causing mame to crash when it unregisters itself as an output client. Output.c’s unregister_client() is guaranteed to crash because if it finds a match then it ends up doing a “->next” twice – once in the “if” body, and once in the “for” statement. This patch to 0.125u8 fixes this problem. It simply adds a “break” to the “if” body since at that point there is no need to continue.
Hope this can make it in for 0.126.
|再現手順||1. Launch mame.|
2. Launch an app that both registers and unregisters itself as an output client (ledutil.exe registers itself but I'm not sure it ever goes through the unregister process).
3. Get that app to unregister itself.
Boom. Mame crashes or goes away silently because it is trying to access a NULL pointer.
|追加情報||Diff submitted within the last hour to firstname.lastname@example.org. I'll upload here as well. This diff was tested by applying to 0.125u8 and confirmed to fix the problem when another app unregisters itself.|
|添付ファイル||unregister_client.zip (2008-07-04 01:31)|