Can I assume chunk_iterator.chunk.bytes points to a zero-terminated string in this particular use-case?
Jul 28, 2021, 9:26:39 AMJul 28
Reply to author
Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Report message as abuse
Sign in to report message as abuse
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to WebP Discussion, Dmitry Baryshev
I do not think there is any guarantee of that on the WebP format side. Does the ISO 16684-1:2012 standard states that a valid XMP chunk is zero-terminated? Even so, libwebp does not check the content of the metadata chunks at encoding nor at decoding, so a "bad" XMP payload would not generate a WebPDemuxGetChunk() error.
I would suggest relying only on chunk_iterator.chunk.size to know the length of the EXIF/XMP chunks.