]> granicus.if.org Git - libmatroska/commit
KaxBlock::ReadData(): use safe/checked memory access
authorMoritz Bunkus <moritz@bunkus.org>
Sat, 20 Dec 2014 15:54:28 +0000 (16:54 +0100)
committerMoritz Bunkus <moritz@bunkus.org>
Sat, 20 Dec 2014 16:06:20 +0000 (17:06 +0100)
commit4457e70466dcc77984202a05525428383cb74fe3
tree619ccfe6817078a9eaa8711b09f7073c71272ccc
parent2e960b9b6321f23c135708582fcf4115f9c635a0
KaxBlock::ReadData(): use safe/checked memory access

Unchecked reading from memory locations works for cases in which all the
data is valid, but if it isn't then this leads to invalid memory access
and segmentation faults.

See https://trac.bunkus.org/ticket/1096
ChangeLog
src/KaxBlock.cpp