Eliminate undefined-shift
Credit OSS Fuzz
diff --git a/coders/dpx.c b/coders/dpx.c
index 6c73c3d..6bb5722 100644
--- a/coders/dpx.c
+++ b/coders/dpx.c
@@ -1158,7 +1158,7 @@
SetPrimaryChromaticity((DPXColorimetric)
dpx.image.image_element[n].colorimetric,&image->chromaticity);
image->depth=dpx.image.image_element[n].bit_size;
- if (image->depth > 32)
+ if ((image->depth == 0) || (image->depth > 32))
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
samples_per_pixel=1;
quantum_type=GrayQuantum;