diff options
| author | John Hurst <jhurst@cinecert.com> | 2019-06-12 17:58:17 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-12 17:58:17 -0700 |
| commit | c83be922eb218d149f369183328440c7302e3934 (patch) | |
| tree | 9d4da0e76ae886cce9e8e439e216df956344a6a4 /src/h__02_Reader.cpp | |
| parent | 598d16fdc3769ec16703c85b5c45ef5c9bf8e928 (diff) | |
| parent | e195bf10ce03b9501ddab62073bef602713cdda6 (diff) | |
Merge pull request #7 from kblinova/master
Fix crashes from AFL run
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; |
