Commit 1732dd79 authored by Frank Bossen's avatar Frank Bossen

Fix #1143: Fix slice address range check

parent b0bbd231
......@@ -3706,7 +3706,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