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__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__Reader.cpp')
| -rwxr-xr-x | src/h__Reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/h__Reader.cpp b/src/h__Reader.cpp index a764767..77f532e 100755 --- a/src/h__Reader.cpp +++ b/src/h__Reader.cpp @@ -108,7 +108,7 @@ ASDCP::h__ASDCPReader::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"); result = RESULT_FORMAT; |
