Merge lp:~brandontschaefer/unity/lp806248-in32-buffer-overflow into lp:unity
Proposed by
Brandon Schaefer
Status: | Merged |
---|---|
Approved by: | Brandon Schaefer |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2944 |
Proposed branch: | lp:~brandontschaefer/unity/lp806248-in32-buffer-overflow |
Merge into: | lp:unity |
Diff against target: |
322 lines (+72/-28) 8 files modified
dash/previews/PreviewContainer.cpp (+1/-1) launcher/Launcher.cpp (+14/-14) launcher/SwitcherView.cpp (+3/-3) plugins/unityshell/src/ElapsedTimeMonitor.cpp (+1/-1) tests/CMakeLists.txt (+1/-0) tests/test_glib_source.cpp (+3/-3) tests/test_time_util.cpp (+38/-0) unity-shared/TimeUtil.h (+11/-6) |
To merge this branch: | bzr merge lp:~brandontschaefer/unity/lp806248-in32-buffer-overflow |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Needs Fixing | |
Stephen M. Webb (community) | Approve | ||
Review via email: mp+137271@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.
I don't think int64 is a good descriptive typedef for a time delta value. Could you maybe come up with a better name?