[jira] [Updated] (HADOOP-10542) Potential null pointer dereference in Jets3tFileSystemStore#retrieveBlock()

2015-03-30 Thread Allen Wittenauer (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-10542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Allen Wittenauer updated HADOOP-10542:
--
Fix Version/s: 2.7.0

 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
  Components: fs/s3
Affects Versions: 2.6.0
Reporter: Ted Yu
Assignee: Ted Yu
Priority: Minor
 Fix For: 2.7.0

 Attachments: hadoop-10542-001.patch


 {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.3.4#6332)


[jira] [Updated] (HADOOP-10542) Potential null pointer dereference in Jets3tFileSystemStore#retrieveBlock()

2015-01-17 Thread Ted Yu (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-10542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ted Yu updated HADOOP-10542:

Attachment: hadoop-10542-001.patch

 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
  Components: fs/s3
Affects Versions: 2.6.0
Reporter: Ted Yu
Assignee: Ted Yu
Priority: Minor
 Attachments: hadoop-10542-001.patch


 {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.3.4#6332)


[jira] [Updated] (HADOOP-10542) Potential null pointer dereference in Jets3tFileSystemStore#retrieveBlock()

2015-01-17 Thread Ted Yu (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-10542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ted Yu updated HADOOP-10542:

Status: Patch Available  (was: Open)

 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
  Components: fs/s3
Affects Versions: 2.6.0
Reporter: Ted Yu
Assignee: Ted Yu
Priority: Minor
 Attachments: hadoop-10542-001.patch


 {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.3.4#6332)


[jira] [Updated] (HADOOP-10542) Potential null pointer dereference in Jets3tFileSystemStore#retrieveBlock()

2015-01-17 Thread Steve Loughran (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-10542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Loughran updated HADOOP-10542:

Resolution: Fixed
Status: Resolved  (was: Patch Available)

+1, committing

 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
  Components: fs/s3
Affects Versions: 2.6.0
Reporter: Ted Yu
Assignee: Ted Yu
Priority: Minor
 Attachments: hadoop-10542-001.patch


 {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.3.4#6332)


[jira] [Updated] (HADOOP-10542) Potential null pointer dereference in Jets3tFileSystemStore#retrieveBlock()

2015-01-16 Thread Steve Loughran (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-10542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Loughran updated HADOOP-10542:

 Target Version/s: 2.7.0
Affects Version/s: 2.6.0

 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
  Components: fs/s3
Affects Versions: 2.6.0
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.3.4#6332)


[jira] [Updated] (HADOOP-10542) Potential null pointer dereference in Jets3tFileSystemStore#retrieveBlock()

2014-04-27 Thread Steve Loughran (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-10542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Loughran updated HADOOP-10542:


Component/s: fs/s3

 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
  Components: fs/s3
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)