mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1092370 - Tighten up MP3FrameParser - r=cpearce
This commit is contained in:
parent
3f15e5268d
commit
c106c6d3c7
@ -337,6 +337,11 @@ nsresult MP3FrameParser::ParseBuffer(const uint8_t* aBuffer,
|
||||
// Found an ID3 header. We don't care about the body of the header, so
|
||||
// just skip past.
|
||||
buffer = ch + mID3Parser.GetHeaderLength() - (ID3_HEADER_LENGTH - 1);
|
||||
|
||||
if (buffer <= ch) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
ch = buffer;
|
||||
|
||||
mTotalID3Size += mID3Parser.GetHeaderLength();
|
||||
|
Loading…
Reference in New Issue
Block a user