Multiple stack-based buffer overflows in pdfshade4.c in MuPDF before commit 20091125231942, as used in SumatraPDF before 1.0.1, allow remote attackers to cause a denial of service and possibly execute arbitrary code via a /Decode array for certain types of shading that are not properly handled by the (1) pdfloadtype4shade, (2) pdfloadtype5shade, (3) pdfloadtype6shade, and (4) pdfloadtype7shade functions. NOTE: some of these details are obtained from third party information.