Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf069a49 authored by Roman Kiryanov's avatar Roman Kiryanov Committed by android-build-merger
Browse files

Merge "Fix integer overflow in make_timestamp_ns_locked" into qt-qpr1-dev

am: 1d20f209

Change-Id: I963c419c063447a54b35aa1dff282cd058368af7
parents 919efcaf 1d20f209
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -664,7 +664,7 @@ int64_t WorkDirectory::make_timestamp_ns_locked() {
            nanosleep(&spec, nullptr);
        }
        clock_gettime(CLOCK_REALTIME, &spec);
        timestampNs = (spec.tv_sec) * 1000 + spec.tv_nsec;
        timestampNs = int64_t(spec.tv_sec) * 1000 + spec.tv_nsec;
    } while (file_exists_locked(timestampNs));
    return timestampNs;
}