camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [3/3] camel git commit: CAMEL-10568 Fix integer overflow bug
Date Thu, 08 Dec 2016 14:15:10 GMT
CAMEL-10568 Fix integer overflow bug 

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

Branch: refs/heads/camel-2.17.x
Commit: 54826e8a7821d71a40ab257905498808d59e5832
Parents: 4994bcb
Author: acampbel <adam.campbell@neustar.biz>
Authored: Thu Dec 8 08:55:28 2016 -0500
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Thu Dec 8 15:14:59 2016 +0100

----------------------------------------------------------------------
 .../file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/54826e8a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java
b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java
index 7ac91c1..1efe642 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java
@@ -90,7 +90,7 @@ public class SftpChangedExclusiveReadLockStrategy implements GenericFileExclusiv
                     match = f.getFilename().equals(file.getFileNameOnly());
                 }
                 if (match) {
-                    newLastModified = f.getAttrs().getMTime() * 1000;
+                    newLastModified = f.getAttrs().getMTime() * 1000L;
                     newLength = f.getAttrs().getSize();
                 }
             }


Mime
View raw message