shithub: opus-tools

Download patch

ref: 3c2f4a8ecaf00274858fbd40e9f94cf77c0c681a
parent: b485a96254c0690aa8487608f9e62d30e9e4b8d4
author: Mark Harris <mark.hsj@gmail.com>
date: Wed Sep 30 21:56:43 EDT 2015

opusenc: Ignore null comments from FLAC input

Crash found by afl-fuzz.

--- a/src/flac.c
+++ b/src/flac.c
@@ -125,6 +125,7 @@
           char *entry;
           char *end;
           entry=(char *)comments[i].entry;
+          if(!entry)continue;
           /*Check for ReplayGain tags.
             Parse the ones we have R128 equivalents for, and skip the others.*/
           if(oi_strncasecmp(entry,"REPLAYGAIN_REFERENCE_LOUDNESS=",30)==0){