Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2019-08-20 22:29:45 +0000
committerMatthias Sohn2019-08-20 22:29:45 +0000
commitc130e5e708a34619a90474afd8f259931fc8e7c2 (patch)
tree7bb25eb04f08dbb0daf7d99391a7b10ced4cbee1 /org.eclipse.jgit.http.server/pom.xml
parent6cb21049d7a48dbc4384fe98a3d3093eb457e381 (diff)
downloadjgit-c130e5e708a34619a90474afd8f259931fc8e7c2.tar.gz
jgit-c130e5e708a34619a90474afd8f259931fc8e7c2.tar.xz
jgit-c130e5e708a34619a90474afd8f259931fc8e7c2.zip
Avoid sign extension when comparing mtime with Instant#getEpochSecond
Ensure we use the same type when comparing seconds since the epoch. This does not prevent that in 2038 timestamps in seconds since the epoch stored in a 32 bit integer will overflow. Integer.MAX_VALUE translates to 2038-01-19T03:14:07Z. After this date we'll have an issue since we store seconds since the epoch in a 32 bit integer in some places. Bug: 319142 Change-Id: If0c03003d40b480f044686e2f7a2f62c9f4e2fe1 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.http.server/pom.xml')
0 files changed, 0 insertions, 0 deletions

Back to the top