[gdal-dev] gdal raster color-map segfault

Even Rouault even.rouault at spatialys.com
Wed Nov 19 01:59:34 PST 2025


Hi,

fix in https://github.com/OSGeo/gdal/pull/13445 . Do not hesitate to 
directly file github tickets for such obvious issues

Even

Le 19/11/2025 à 05:10, Scott via gdal-dev a écrit :
> 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
>
-- 
http://www.spatialys.com
My software is free, but my time generally not.



More information about the gdal-dev mailing list