diff options
| author | Katerina Blinova <kblin@dolby.com> | 2019-05-29 18:39:10 -0700 |
|---|---|---|
| committer | Katerina Blinova <kblin@dolby.com> | 2019-05-29 18:39:10 -0700 |
| commit | e195bf10ce03b9501ddab62073bef602713cdda6 (patch) | |
| tree | b6b2dbd81ea54ddc72bb284f55606aadb99d02eb /src/h__02_Reader.cpp | |
| parent | a47c9580834223971a310e572a249e7fdb115618 (diff) | |
Fix crashes from AFL run
We ran American Fuzzy Lop on IMF IAB master file reader and discovered a lot of crashes. These are fixes in the asdcplib code base.
Diffstat (limited to 'src/h__02_Reader.cpp')
| -rw-r--r-- | src/h__02_Reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/h__02_Reader.cpp b/src/h__02_Reader.cpp index 17e9b0d..39db8cb 100644 --- a/src/h__02_Reader.cpp +++ b/src/h__02_Reader.cpp @@ -430,7 +430,7 @@ AS_02::h__AS02Reader::OpenMXFRead(const std::string& filename) } // - if ( m_RIP.PairArray.front().ByteOffset != 0 ) + if ( !m_RIP.PairArray.empty() && m_RIP.PairArray.front().ByteOffset != 0 ) { DefaultLogSink().Error("First Partition in RIP is not at offset 0.\n"); return RESULT_AS02_FORMAT; |
