From 6b3b189d5bbbd4ccb8521f19b77e491a95be7825 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 13 May 2020 00:56:14 +0200 Subject: TIFFGetConfiguredCODECs(): fix to avoid wrong structure to be returned for registered (ie non built-in) codecs --- libtiff/tif_compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtiff/tif_compress.c b/libtiff/tif_compress.c index 8130ef08..915478f5 100644 --- a/libtiff/tif_compress.c +++ b/libtiff/tif_compress.c @@ -264,7 +264,7 @@ TIFFGetConfiguredCODECs() return NULL; } codecs = new_codecs; - _TIFFmemcpy(codecs + i - 1, cd, sizeof(TIFFCodec)); + _TIFFmemcpy(codecs + i - 1, cd->info, sizeof(TIFFCodec)); i++; } for (c = _TIFFBuiltinCODECS; c->name; c++) { -- cgit v1.2.1