jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Created] (OAK-7761) SegmentTarWriter#readSegment does not check the return value of FileChannel#read
Date Tue, 18 Sep 2018 07:48:00 GMT
Michael Dürig created OAK-7761:
----------------------------------

             Summary: SegmentTarWriter#readSegment does not check the return value of FileChannel#read
                 Key: OAK-7761
                 URL: https://issues.apache.org/jira/browse/OAK-7761
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: segment-tar
            Reporter: Michael Dürig
             Fix For: 1.10


We need to check the return value of {{FileChannel#read}} as that method might read fewer
bytes than requested. The corresponding Javadoc is (hidden) at {{ReadableByteChannel#read}}:
"A read operation might not fill the buffer, and in fact it might not read any bytes at all"



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message