Code review request [JDK 9] 8042449 Issue for negative byte major record version

Florian Weimer fweimer at redhat.com
Tue May 6 11:41:39 UTC 2014


On 05/06/2014 12:10 PM, Xuelei Fan wrote:

> Please review this simple but interesting fix:
>    http://cr.openjdk.java.net/~xuelei/8042449/webrev.00/

It's strange that the code caches the major/minor version components as 
fields of ProtocolVersion, but these fields cannot be used directly and 
still need shifting and masking.

Maybe it's better to store the components as ints, or remove the fields 
completely and use accessors that extract the components from the 
version field as needed?

-- 
Florian Weimer / Red Hat Product Security Team



More information about the security-dev mailing list