Tracker: Fix integer overflow

CID1108329
This commit is contained in:
John Scipione
2014-07-18 17:58:12 -04:00
parent 1e228168ec
commit b8bcb08800
+4 -2
View File
@@ -224,11 +224,13 @@ public:
if (error != B_OK)
return error;
bigtime_t fileTime = st.st_mtim.tv_sec * 1000000
+ st.st_mtim.tv_nsec / 1000;
bigtime_t fileTime = st.st_mtim.tv_sec;
fileTime *= 1000000;
fileTime += st.st_mtim.tv_nsec / 1000;
if (fileTime == fFileTime) {
if (_changed != NULL)
*_changed = false;
return B_OK;
}