drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jacq...@apache.org
Subject [4/7] drill git commit: Add bounds check in setByte() method
Date Sat, 16 May 2015 01:39:08 GMT
Add bounds check in setByte() method


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/c9a9b7c9
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/c9a9b7c9
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/c9a9b7c9

Branch: refs/heads/1.0.0
Commit: c9a9b7c9481e4ea7533a8271c5ba3201e12a346c
Parents: e838abf
Author: Steven Phillips <smp@apache.org>
Authored: Fri May 15 15:12:18 2015 -0700
Committer: Jacques Nadeau <jacques@apache.org>
Committed: Fri May 15 17:38:27 2015 -0700

----------------------------------------------------------------------
 exec/java-exec/src/main/java/io/netty/buffer/DrillBuf.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/c9a9b7c9/exec/java-exec/src/main/java/io/netty/buffer/DrillBuf.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/main/java/io/netty/buffer/DrillBuf.java b/exec/java-exec/src/main/java/io/netty/buffer/DrillBuf.java
index 6f61f30..3ec6b3e 100644
--- a/exec/java-exec/src/main/java/io/netty/buffer/DrillBuf.java
+++ b/exec/java-exec/src/main/java/io/netty/buffer/DrillBuf.java
@@ -615,6 +615,7 @@ public final class DrillBuf extends AbstractByteBuf implements AutoCloseable
{
   }
 
   public void setByte(int index, byte b){
+    chk(index, 1);
     PlatformDependent.putByte(addr(index), b);
   }
 


Mime
View raw message