<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Andrew, The fix looks good to me.<br>
      <br>
      Sergey, are you asking for that text to be added ? Looks to me
      like its already there,<br>
      so probably I am not following what you mean.<br>
      <br>
      -phil.<br>
      <br>
      On 03/20/2015 10:32 AM, Sergey Bylokhov wrote:<br>
    </div>
    <blockquote cite="mid:550C59C4.6000000@oracle.com" type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Hi, Andrew?<br>
        Hi, Andrew.<br>
        Should we update a readFully() also?<br>
        <meta http-equiv="content-type" content="text/html;
          charset=windows-1252">
             * @exception java.io.EOFException if the stream reaches the
        end before<br>
             * reading all the bytes.<br>
             * @exception IOException if an I/O error occurs.<br>
             */<br>
            void readFully(byte[] b, int off, int len) throws
        IOException;<br>
        <br>
        20.03.15 14:30, Andrew Brygin wrote:<br>
      </div>
      <blockquote cite="mid:550C04E9.2070807@oracle.com" type="cite">Hello,

        <br>
        <br>
         could you please review a fix for CR 8074954? <br>
        <br>
        Bug: <a moz-do-not-send="true" class="moz-txt-link-freetext"
          href="https://bugs.openjdk.java.net/browse/JDK-8074954">https://bugs.openjdk.java.net/browse/JDK-8074954</a>
        <br>
        Webrev: <a moz-do-not-send="true" class="moz-txt-link-freetext"
          href="http://cr.openjdk.java.net/%7Ebae/8074954/9/webrev.00/">http://cr.openjdk.java.net/~bae/8074954/9/webrev.00/</a>
        <br>
        <br>
         The problem happens if an input stream does not contain enough
        data <br>
         to read a multi-byte type (as 4-bytes integer or 2-bytes short)
        <br>
         completely. In this case the actual number of obtained bytes is
        <br>
         returned, and if we get at least one byte, the EOF exception in
        <br>
         not triggered. <br>
         As a result, an incorrect value is returned. <br>
        <br>
         Suggested fix is to check explicitly whether required number of
        bytes <br>
         has been read. <br>
        <br>
         Supplied regression test demonstrates the problem. <br>
        <br>
         Please take a look. <br>
        <br>
        Thanks, <br>
        Andrew. <br>
      </blockquote>
      <br>
      <br>
      <pre class="moz-signature" cols="72">-- 
Best regards, Sergey. </pre>
    </blockquote>
    <br>
  </body>
</html>