[gdal-dev] gdal raster color-map segfault

Scott public at postholer.com
Tue Nov 18 20:10:38 PST 2025


Greetings,

Putting a hex color in a color-map.txt file causes a segfault. No, you 
shouldn't be doing that. GDAL 3.12.0. Here's an example:

gdal raster color-map \
    -i byte.tif \
    --color-map bad-color-map.txt \
    -o tst.png --overwrite

bad-color-map.txt:

nv 255 255 255 255
0 88 0 0
128 #ffccff
255 0 0 88

Thanks!
Scott

-- 
www.postholer.com



More information about the gdal-dev mailing list