Merge lp:~vanvugt/mir/cursor-stride into lp:mir
Proposed by
Daniel van Vugt
Status: | Merged |
---|---|
Approved by: | Daniel van Vugt |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2067 |
Proposed branch: | lp:~vanvugt/mir/cursor-stride |
Merge into: | lp:mir |
Diff against target: |
68 lines (+24/-12) 2 files modified
src/platform/graphics/mesa/cursor.cpp (+18/-11) tests/unit-tests/graphics/mesa/test_cursor.cpp (+6/-1) |
To merge this branch: | bzr merge lp:~vanvugt/mir/cursor-stride |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel van Vugt | Approve | ||
Cemil Azizoglu (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Robert Carr (community) | Approve | ||
Alan Griffiths | Needs Fixing | ||
Kevin DuBois (community) | Needs Fixing | ||
Review via email: mp+241950@code.launchpad.net |
Commit message
Fix cursor stride calculation that could lead to a corrupt cursor
image (LP: #1391975)
To post a comment you must log in.
47 + write_buffer_ data_locked( lg, padded, padded_size); data_locked throws (which it can if gbm_bo_write fails), we leak padded.
48 + delete[] padded;
If write_buffer_
looks good otherwise