hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-2707) Potential null dereference in FSDownload
Date Sat, 01 Nov 2014 11:51:42 GMT

    [ https://issues.apache.org/jira/browse/YARN-2707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14193106#comment-14193106
] 

Hudson commented on YARN-2707:
------------------------------

SUCCESS: Integrated in Hadoop-Yarn-trunk #730 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/730/])
YARN-2707. Potential null dereference in FSDownload. Contributed by Gera Shegalov (jlowe:
rev 7bc179f9f5e1e270fd5e6f1ad29b0f32fe371d15)
* hadoop-yarn-project/CHANGES.txt
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/util/TestFSDownload.java
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/FSDownload.java


> Potential null dereference in FSDownload
> ----------------------------------------
>
>                 Key: YARN-2707
>                 URL: https://issues.apache.org/jira/browse/YARN-2707
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Gera Shegalov
>            Priority: Minor
>             Fix For: 2.6.0
>
>         Attachments: YARN-2707.v01.patch
>
>
> Here is related code in call():
> {code}
>       Pattern pattern = null;
>       String p = resource.getPattern();
>       if (p != null) {
>         pattern = Pattern.compile(p);
>       }
>       unpack(new File(dTmp.toUri()), new File(dFinal.toUri()), pattern);
> {code}
> In unpack():
> {code}
>         RunJar.unJar(localrsrc, dst, pattern);
> {code}
> unJar() would dereference the pattern without checking whether it is null.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message