You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/12/08 14:15:10 UTC

[3/3] camel git commit: CAMEL-10568 Fix integer overflow bug

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 <ad...@neustar.biz>
Authored: Thu Dec 8 08:55:28 2016 -0500
Committer: Claus Ibsen <da...@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();
                 }
             }