You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2014/04/27 17:29:14 UTC
[jira] [Created] (HADOOP-10542) Potential null pointer dereference
in Jets3tFileSystemStore#retrieveBlock()
Ted Yu created HADOOP-10542:
-------------------------------
Summary: Potential null pointer dereference in Jets3tFileSystemStore#retrieveBlock()
Key: HADOOP-10542
URL: https://issues.apache.org/jira/browse/HADOOP-10542
Project: Hadoop Common
Issue Type: Bug
Reporter: Ted Yu
Priority: Minor
{code}
in = get(blockToKey(block), byteRangeStart);
out = new BufferedOutputStream(new FileOutputStream(fileBlock));
byte[] buf = new byte[bufferSize];
int numRead;
while ((numRead = in.read(buf)) >= 0) {
{code}
get() may return null.
The while loop dereferences in without null check.
--
This message was sent by Atlassian JIRA
(v6.2#6252)