Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MemIOCallback: fix buffer overflow when writing too much data
If the addition of 2 positive values is smaller than one of the values then we have an overflowing addition. In this case we will not be able to allocate that much, just return a size written as 0. (cherry picked from commit 2d5c11c) Signed-off-by: Steve Lhomme <slhomme@matroska.org>
- Loading branch information