[flac-dev] [PATCH] check iterator->is_writable

lvqcl lvqcl.mail at gmail.com
Wed Jan 13 11:18:41 PST 2016


In libFLAC/metadata_iterators.c, functions
   FLAC__metadata_simple_iterator_set_block()
   FLAC__metadata_simple_iterator_insert_block_after()

check the value of iterator->is_writable, but

   FLAC__metadata_simple_iterator_delete_block()

doesn't do it. Is there any reason for it? Because I cannot see any.

The patch adds this missing check.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: writable_check.patch
Type: application/octet-stream
Size: 685 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/flac-dev/attachments/20160113/94f365a4/attachment.obj 


More information about the flac-dev mailing list