libFLAC: Remove un-needed assert
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 4 Jul 2015 06:27:21 +0000 (16:27 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 4 Jul 2015 06:27:33 +0000 (16:27 +1000)
This asset was firing when the build was configured with --enable-debug
and the flac executable was then run under American Fuzzy Lop. Removing
the assert did not cause any other problems, even under AFL.

src/libFLAC/metadata_object.c

index a799bf8..33a2b55 100644 (file)
@@ -567,7 +567,6 @@ FLAC_API FLAC__StreamMetadata *FLAC__metadata_object_clone(const FLAC__StreamMet
                                        return 0;
                                }
                                if(object->data.vorbis_comment.num_comments == 0) {
-                                       FLAC__ASSERT(0 == object->data.vorbis_comment.comments);
                                        to->data.vorbis_comment.comments = 0;
                                }
                                else {