Paolo Bonzini <[email protected]> writes: > In the case of a 4-byte length, shifting a value by 24 may cause > an unintended sign extension when converting from int to size_t. > Use a uint32_t variable instead. > > Signed-off-by: Paolo Bonzini <[email protected]>
For 32 bit ssize_t, lengths > 0x7fffffff go to negative, same as before. *shrug* Reviewed-by: Markus Armbruster <[email protected]>
