summaryrefslogtreecommitdiff
path: root/src/h__Reader.cpp
diff options
context:
space:
mode:
authorJohn Hurst <jhurst@cinecert.com>2019-06-12 17:58:17 -0700
committerGitHub <noreply@github.com>2019-06-12 17:58:17 -0700
commitc83be922eb218d149f369183328440c7302e3934 (patch)
tree9d4da0e76ae886cce9e8e439e216df956344a6a4 /src/h__Reader.cpp
parent598d16fdc3769ec16703c85b5c45ef5c9bf8e928 (diff)
parente195bf10ce03b9501ddab62073bef602713cdda6 (diff)
Merge pull request #7 from kblinova/master
Fix crashes from AFL run
Diffstat (limited to 'src/h__Reader.cpp')
-rwxr-xr-xsrc/h__Reader.cpp2
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;