output: #fixed code
                                  @Test
      public void testSkipNone() throws Throwable {
          InputStream ins = new ByteArrayInputStream(StringUtils.getBytesIso8859_1(ENCODED_B64));
          Base64InputStream b64stream = new Base64InputStream(ins);
          byte[] actualBytes = new byte[6];
          assertEquals(0, b64stream.skip(0));
          b64stream.read(actualBytes, 0, actualBytes.length);
          assertArrayEquals(actualBytes, new byte[] { 0, 0, 0, (byte) 255, (byte) 255, (byte) 255 });
          // End of stream reached
          assertEquals(-1, b64stream.read());
          b64stream.close();
      }
input: #vulnerable code 
                                  @Test
      public void testSkipNone() throws Throwable {
          InputStream ins = new ByteArrayInputStream(StringUtils.getBytesIso8859_1(ENCODED_B64));
          Base64InputStream b64stream = new Base64InputStream(ins);
          byte[] actualBytes = new byte[6];
          assertEquals(0, b64stream.skip(0));
          b64stream.read(actualBytes, 0, actualBytes.length);
          assertArrayEquals(actualBytes, new byte[] { 0, 0, 0, (byte) 255, (byte) 255, (byte) 255 });
          // End of stream reached
          assertEquals(-1, b64stream.read());
      } 
                              #location 10 
                              #vulnerability type RESOURCE_LEAK