[ 
https://issues.apache.org/jira/browse/HADOOP-4271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635538#action_12635538
 ] 

Hairong Kuang commented on HADOOP-4271:
---------------------------------------

> The buffer in FSInputChecker becomes invalid when readChecksumChunk is used 
> to read a chunk to a user buffer directly. Currently, it's not marked as 
> invalid in this case and may be read subsequently.

I do not understand why this is a bug. Only when the buffer does not have any 
available byte, data are read to the user buffer directly. So there is no need 
to invalidate the buffer.

> Bug in FSInputChecker makes it possible to read from an invalid buffer
> ----------------------------------------------------------------------
>
>                 Key: HADOOP-4271
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4271
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.16.0
>            Reporter: Ning Li
>            Assignee: Ning Li
>            Priority: Blocker
>             Fix For: 0.17.3, 0.18.2
>
>         Attachments: .data_testFSInputChecker.crc, data_testFSInputChecker, 
> hadoop-4271-branch-17.patch, hadoop-4271-branch-18.patch, 
> hadoop-4271-branch-18.patch, hadoop-4271.patch, hadoop-4271.patch, 
> hadoop-4271.patch, hadoop-4271.patch, HADOOP-4277-branch-18-correction.patch
>
>
> Bug in FSInputChecker makes it possible to read from an invalid buffer. The 
> buffer in FSInputChecker becomes invalid when readChecksumChunk is used to 
> read a chunk to a user buffer directly. Currently, it's not marked as invalid 
> in this case and may be read subsequently.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to