X-Git-Url: https://git.piment-noir.org/?p=deb_xorg-server.git;a=blobdiff_plain;f=debian%2Fpatches%2F227_null_ptr_midispcur.patch;fp=debian%2Fpatches%2F227_null_ptr_midispcur.patch;h=4b26c161b826b3f120be6a243a87fc58512aebee;hp=0000000000000000000000000000000000000000;hb=7217e0ca50bba73dad94782e67980aeeb24ab693;hpb=a09e091a5c996d46a398abb27b06fe504591673f diff --git a/debian/patches/227_null_ptr_midispcur.patch b/debian/patches/227_null_ptr_midispcur.patch new file mode 100644 index 0000000..4b26c16 --- /dev/null +++ b/debian/patches/227_null_ptr_midispcur.patch @@ -0,0 +1,15 @@ +diff --git a/mi/midispcur.c b/mi/midispcur.c +index 24b9a70..266c7e0 100644 +--- a/mi/midispcur.c ++++ b/mi/midispcur.c +@@ -466,6 +466,10 @@ miDCRestoreUnderCursor(DeviceIntPtr pDev, ScreenPtr pScreen, + GCPtr pGC; + + pBuffer = miGetDCDevice(pDev, pScreen); ++ ++ if (!pBuffer) ++ return FALSE; ++ + pSave = pBuffer->pSave; + + pWin = pScreen->root;