projects
/
asdcplib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix crashes from AFL run
[asdcplib.git]
/
src
/
h__Reader.cpp
diff --git
a/src/h__Reader.cpp
b/src/h__Reader.cpp
index a764767fc99837062595229503fbcf17e98bfc26..77f532e7fe20c1edd6d90a29d37b9ec9f1900c55 100755
(executable)
--- 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;