mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-15 18:33:41 +00:00
8183028: Improve CMS header processing
Reviewed-by: serb, rhalade, mschoene
This commit is contained in:
parent
3232ef5897
commit
bbfbe9af71
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user