[Gdal-dev] TIFFGetConfiguredCODECs bug
Julien Demaria
dem at acri-st.fr
Thu Sep 30 10:10:04 EDT 2004
Hi,
In the current libtiff and GDAL CVS there is a bug in the new
TIFFGetConfiguredCODECs function :
for (cd = registeredCODECS; cd; cd = cd->next) {
codecs = _TIFFrealloc(codecs, i * sizeof(TIFFCodec));
_TIFFmemcpy(codecs + i - 1, cd->next, sizeof(TIFFCodec));
i++;
}
the "cd->next" in _TIFFmemcpy shoul be "cd" only.
This function crashs only if there is at least one registered non-builtin
codec...
Regards,
Julien
More information about the Gdal-dev
mailing list