From c1b07e2a356b9c3beca9d31365b93166ed3ac525 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Fri, 2 Nov 2018 02:54:04 +0000 Subject: Identify compressed color-mapped format in error message saying format is can't be interpreted git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3412 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/ppm/tgatoppm.c | 5 +++++ doc/HISTORY | 3 +++ 2 files changed, 8 insertions(+) diff --git a/converter/ppm/tgatoppm.c b/converter/ppm/tgatoppm.c index 9f3db277..662f741b 100644 --- a/converter/ppm/tgatoppm.c +++ b/converter/ppm/tgatoppm.c @@ -374,6 +374,11 @@ main(int argc, char * argv[]) { case TGA_RLERGB: case TGA_RLEMono: break; + case TGA_CompMap: + case TGA_CompMap4: + pm_error("Targa image type %d (compressed color-mapped data). " + "Cannot handle this format.", tga_head.ImgType); + break; default: pm_error("unknown Targa image type %d", tga_head.ImgType); } diff --git a/doc/HISTORY b/doc/HISTORY index be561575..f27ea8ac 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -13,6 +13,9 @@ not yet BJH Release 10.85.00 picttoppm: accept rectangle specifications in input that have the corners in any order, not just upper left, then lower right. + pamtotga: identify compressed colormapped format in error + message saying the program doesn't know how to interpret it. + libnetpbm: Fix invalid memory reference in color name processing when trivial memory allocation fails. -- cgit 1.4.1