Skip to content

Commit e9c27de

Browse files
authored
Merge pull request #1036 from Sisyphus-wang/patch-6-fix-Ap4LinearReader-heap-use-after-free
Update Ap4LinearReader.cpp
2 parents b7ef459 + 63c1191 commit e9c27de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/C++/Core/Ap4LinearReader.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ AP4_LinearReader::Advance(bool read_data)
460460
}
461461
if (AP4_FAILED(result)) {
462462
delete buffer;
463+
next_tracker->m_NextSample = NULL;
463464
return result;
464465
}
465466

0 commit comments

Comments
 (0)