[9] [XXS] RFR 8137121: (ch) Infinite loop in sun.nio.ch.FileChannelImpl.truncate

Ivan Gerasimov ivan.gerasimov at oracle.com
Fri Sep 25 13:27:46 UTC 2015


Hello!

A long result of a call to position0 is blindly cast to int, which may 
accidentally result in (-3) special value.
Would you please help review the fix?

BUGURL: https://bugs.openjdk.java.net/browse/JDK-8137121
WEBREV: http://cr.openjdk.java.net/~igerasim/8137121/00/webrev/

Sincerely yours,
Ivan



More information about the nio-dev mailing list