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__02_Reader.cpp
diff --git
a/src/h__02_Reader.cpp
b/src/h__02_Reader.cpp
index 17e9b0d78385ce9b93c3d95db490ac5befc3a2b7..39db8cbe37623a3a20a0e4b16daafe167e42a5a3 100644
(file)
--- 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;