Commit acfb50b6 authored by Xiang Li's avatar Xiang Li

Merge branch 'fix1143' into 'master'

Fix #1143: Fix slice address range check

See merge request !1801
parents 56f2bee0 1732dd79
......@@ -3710,7 +3710,7 @@ void HLSyntaxReader::parseSliceHeader (Slice* pcSlice, PicHeader* picHeader, Par
{
int bitsSliceAddress = ceilLog2(currSubPic.getNumSlicesInSubPic());
READ_CODE(bitsSliceAddress, uiCode, "slice_address"); sliceAddr = uiCode;
CHECK(sliceAddr >= pps->getNumSlicesInPic(), "Invalid slice address");
CHECK(sliceAddr >= currSubPic.getNumSlicesInSubPic(), "Invalid slice address");
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment