mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-10-02 16:23:57 +08:00
X11: Check for invalid opcodes in SHM error handler
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
(cherry picked from commit b59d6d49c3)
This commit is contained in:
@@ -33,7 +33,7 @@ static int shm_error;
|
||||
static int (*X_handler)(Display *, XErrorEvent *) = NULL;
|
||||
static int shm_errhandler(Display *d, XErrorEvent *e)
|
||||
{
|
||||
if (e->error_code == BadAccess) {
|
||||
if (e->error_code == BadAccess || e->error_code == BadRequest) {
|
||||
shm_error = True;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user