8183028: Improve CMS header processing

Reviewed-by: serb, rhalade, mschoene
This commit is contained in:
Phil Race 2017-07-06 09:43:27 -07:00
parent 3232ef5897
commit bbfbe9af71

View File

@ -1489,6 +1489,7 @@ void *Type_MLU_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsU
// Check for overflow
if (Offset < (SizeOfHeader + 8)) goto Error;
if (((Offset + Len) < Len) || ((Offset + Len) > SizeOfTag + 8)) goto Error;
// True begin of the string
BeginOfThisString = Offset - SizeOfHeader - 8;