Skip to content

Commit b59d6d4

Browse files
eaftonslouken
authored andcommitted
X11: Check for invalid opcodes in SHM error handler
1 parent 387a2b9 commit b59d6d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video/x11/SDL_x11framebuffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static int shm_error;
3333
static int (*X_handler)(Display *, XErrorEvent *) = NULL;
3434
static int shm_errhandler(Display *d, XErrorEvent *e)
3535
{
36-
if (e->error_code == BadAccess) {
36+
if (e->error_code == BadAccess || e->error_code == BadRequest) {
3737
shm_error = True;
3838
return 0;
3939
}

0 commit comments

Comments
 (0)