diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2016-07-10 11:18:34 +1000 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2016-07-10 11:25:39 +1000 |
commit | a70fcdd6330ec54b4ae4324dbe6c39f8d9f8ea66 (patch) | |
tree | 1fcf7d98679ee3049549d1ad34c8a3ac223c9ba0 | |
parent | 9949ce15f66d1312e7f0692298cfe8087488330b (diff) | |
download | flac-a70fcdd6330ec54b4ae4324dbe6c39f8d9f8ea66.tar.gz |
metadata_object.c: Remove un-needed asserts
These asserts were being triggered by AFL (American Fuzzy Lop) and
serve seemingly no useful purpose. The are only enabled in debug builds
where they abort the program which is otherwise in a safe state.
Removing these asserts will potentially allow AFL to turn up other
problems elsewhere.
-rw-r--r-- | src/libFLAC/metadata_object.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libFLAC/metadata_object.c b/src/libFLAC/metadata_object.c index 05ca6b31..660dbeed 100644 --- a/src/libFLAC/metadata_object.c +++ b/src/libFLAC/metadata_object.c @@ -73,8 +73,6 @@ static FLAC__bool copy_bytes_(FLAC__byte **to, const FLAC__byte *from, unsigned *to = x; } else { - FLAC__ASSERT(0 == from); - FLAC__ASSERT(bytes == 0); *to = 0; } return true; @@ -567,11 +565,9 @@ 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 { - FLAC__ASSERT(0 != object->data.vorbis_comment.comments); to->data.vorbis_comment.comments = vorbiscomment_entry_array_copy_(object->data.vorbis_comment.comments, object->data.vorbis_comment.num_comments); if(0 == to->data.vorbis_comment.comments) { to->data.vorbis_comment.num_comments = 0; |