Merge lp:~brandontschaefer/unity/lp806248-fix-int32-buffer-overflow-4.0 into lp:unity/4.0
Proposed by
Brandon Schaefer
Status: | Rejected |
---|---|
Rejected by: | Andrea Azzarone |
Proposed branch: | lp:~brandontschaefer/unity/lp806248-fix-int32-buffer-overflow-4.0 |
Merge into: | lp:unity/4.0 |
Diff against target: |
288 lines (+69/-26) 6 files modified
plugins/unityshell/src/ElapsedTimeMonitor.cpp (+1/-1) plugins/unityshell/src/Launcher.cpp (+18/-18) plugins/unityshell/src/SwitcherView.cpp (+3/-3) plugins/unityshell/src/TimeUtil.h (+9/-4) tests/CMakeLists.txt (+1/-0) tests/test_time_util.cpp (+37/-0) |
To merge this branch: | bzr merge lp:~brandontschaefer/unity/lp806248-fix-int32-buffer-overflow-4.0 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrea Azzarone (community) | Approve | ||
Review via email: mp+137684@code.launchpad.net |
Commit message
Change TimeUtil to use int64, so the buffer wont overflow within our lifetimes.
Description of the change
=== Problem ===
After 24 days the int32 used in TimeUtil would overflow causing problems.
=== Fix ===
Change TimeUtil to use int64, so it wont overflow within our lifetimes.
=== Test ===
Unit test showing an int32 buffer overflow, and asserting it doesn't anymore.
To post a comment you must log in.
Unmerged revisions
- 1740. By Brandon Schaefer
-
* Fix header
- 1739. By Brandon Schaefer
-
* Fix int32 buffer overflow in TimeUtil, now uses int64