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.

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to