Re: [FFmpeg-devel] [PATCH 1/6] avcodec/tiff: Fix handling of av_strdup() failures

2024-03-10 Thread Stefano Sabatini
On date Sunday 2024-03-10 15:12:16 +0100, Andreas Rheinhardt wrote: > For unknown geokey values, get_geokey_val() returns > "Unknown-%d" with val being used for %d. This string > is allocated and therefore all the known geokey values > (static strings) are strdup'ed. In case this fails > it is eith

[FFmpeg-devel] [PATCH 1/6] avcodec/tiff: Fix handling of av_strdup() failures

2024-03-10 Thread Andreas Rheinhardt
For unknown geokey values, get_geokey_val() returns "Unknown-%d" with val being used for %d. This string is allocated and therefore all the known geokey values (static strings) are strdup'ed. In case this fails it is either ignored or treated as "Unknown-%d". (Furthermore it is possible to call av_