diff --git a/hadoop-hdfs-project/hadoop-hdfs-nfs/src/main/java/org/apache/hadoop/hdfs/nfs/nfs3/RpcProgramNfs3.java b/hadoop-hdfs-project/hadoop-hdfs-nfs/src/main/java/org/apache/hadoop/hdfs/nfs/nfs3/RpcProgramNfs3.java index c2fc70990c..533fa22077 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-nfs/src/main/java/org/apache/hadoop/hdfs/nfs/nfs3/RpcProgramNfs3.java +++ b/hadoop-hdfs-project/hadoop-hdfs-nfs/src/main/java/org/apache/hadoop/hdfs/nfs/nfs3/RpcProgramNfs3.java @@ -545,7 +545,8 @@ public READLINK3Response readlink(XDR xdr, SecurityHandler securityHandler, return new READLINK3Response(Nfs3Status.NFS3ERR_SERVERFAULT); } if (MAX_READ_TRANSFER_SIZE < target.getBytes().length) { - return new READLINK3Response(Nfs3Status.NFS3ERR_IO, postOpAttr, null); + return new READLINK3Response(Nfs3Status.NFS3ERR_IO, postOpAttr, + new byte[0]); } return new READLINK3Response(Nfs3Status.NFS3_OK, postOpAttr, diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 0adccb7337..5a0e421653 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -404,6 +404,9 @@ Release 2.4.0 - UNRELEASED HDFS-5900. Cannot set cache pool limit of "unlimited" via CacheAdmin. (wang) + HDFS-5886. Potential null pointer deference in RpcProgramNfs3#readlink() + (brandonli) + Release 2.3.0 - UNRELEASED INCOMPATIBLE CHANGES