You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix potential MEM_SIZE overflow in expected_size()
Coverity says:
CID 584099: Integer handling issues (INTEGER_OVERFLOW)
Expression "newlen + 8UL", where "newlen" is known to be equal to 18446744073709551615, overflows the type of "newlen + 8UL", which is type "unsigned long".
(Referring to (n) + PTRSIZE - 1 where n = newlen and PTRSIZE = 8UL.)
Crudely avoid the issue by checking n for overflow beforehand and dying
with a "panic: memory wrap" error if so.
0 commit comments