зеркало из https://github.com/mozilla/gecko-dev.git
2013fbe962
This adds 2 checks to deal with overflow related issues when parsing webms. - Detect uint64 overflows when calculating buffered ranges. This is unlikely, but appears like something that could conceptually happen given the data types involved. This isn't strictly needed to fix the bug, but figured I'd guard against it while I'm in the code. - Detect issues from uint64 -> int64 conversion when calculating TimeUnits in the WebM parser. This is needed to fix the bug, as while we do some checks that start <= end, we were not guarding against this following TimeUnit conversion. My understanding is we should never encounter negative TimeUnits for the code in question, so the added check bails if any negative values are encountered. Differential Revision: https://phabricator.services.mozilla.com/D105506 |
||
---|---|---|
.. | ||
EbmlComposer.cpp | ||
EbmlComposer.h | ||
NesteggPacketHolder.h | ||
WebMBufferedParser.cpp | ||
WebMBufferedParser.h | ||
WebMDecoder.cpp | ||
WebMDecoder.h | ||
WebMDemuxer.cpp | ||
WebMDemuxer.h | ||
WebMWriter.cpp | ||
WebMWriter.h | ||
moz.build |