15 lines
725 B
Diff
15 lines
725 B
Diff
|
|
diff -rupN --no-dereference freeimage-svn-r1909-FreeImage-trunk/Source/FreeImage/PluginTIFF.cpp freeimage-svn-r1909-FreeImage-trunk-new/Source/FreeImage/PluginTIFF.cpp
|
||
|
|
--- freeimage-svn-r1909-FreeImage-trunk/Source/FreeImage/PluginTIFF.cpp 2023-09-28 19:34:47.501011966 +0200
|
||
|
|
+++ freeimage-svn-r1909-FreeImage-trunk-new/Source/FreeImage/PluginTIFF.cpp 2023-09-28 19:34:47.610010879 +0200
|
||
|
|
@@ -372,6 +372,10 @@ static void
|
||
|
|
ReadPalette(TIFF *tiff, uint16_t photometric, uint16_t bitspersample, FIBITMAP *dib) {
|
||
|
|
RGBQUAD *pal = FreeImage_GetPalette(dib);
|
||
|
|
|
||
|
|
+ if (!pal) {
|
||
|
|
+ return;
|
||
|
|
+ }
|
||
|
|
+
|
||
|
|
switch(photometric) {
|
||
|
|
case PHOTOMETRIC_MINISBLACK: // bitmap and greyscale image types
|
||
|
|
case PHOTOMETRIC_MINISWHITE:
|