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__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__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; |
