Merge lp:~mir-team/mir/handle-mis-shaped-cookies into lp:mir
Status: | Rejected |
---|---|
Rejected by: | Brandon Schaefer |
Proposed branch: | lp:~mir-team/mir/handle-mis-shaped-cookies |
Merge into: | lp:mir |
Diff against target: |
249 lines (+203/-3) 4 files modified
src/server/input/default_event_builder.cpp (+4/-2) src/server/input/key_repeat_dispatcher.cpp (+2/-1) tests/acceptance-tests/CMakeLists.txt (+1/-0) tests/acceptance-tests/test_server_cookie_authority.cpp (+196/-0) |
To merge this branch: | bzr merge lp:~mir-team/mir/handle-mis-shaped-cookies |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alan Griffiths | Disapprove | ||
Daniel van Vugt | Abstain | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Mir CI Bot | continuous-integration | Approve | |
Andreas Pokorny (community) | Approve | ||
Review via email: mp+284952@code.launchpad.net |
Commit message
We need to handle mis shaped cookies. If someone creates a cookie authority that returns a Cookie that is too large/small to fit into our own assumption of what a cookie is we need to handle that gracefully.
Description of the change
We need to handle mis shaped cookies. If someone creates a cookie authority that returns a Cookie that is to large/small to fit into our own assumption of what a cookie is we need to handle that gracefully.
If the cookie is NULL. We sigsegv, which will have a meaningful bt.
If the Cookie is smaller then our under the hood version we just copy the size of that.
// This would be a fix me!
If the Cookie is larger then we only copy the max amount we can handle into the internal cookie.
Unmerged revisions
- 3279. By Brandon Schaefer
-
* Fix test names
* Use wait cond vs spin wait - 3278. By Brandon Schaefer
-
* Dont change that space
- 3277. By Brandon Schaefer
-
* Test we can override a stub cookie factory and accept cookie size thats less then our internal storage size
- 3276. By Brandon Schaefer
-
* The current test, some strange hangup on a surface release or thread join (if you skip the release)
- 3275. By Brandon Schaefer
-
* We throw on NULL cookies and handle empty/large cookies now
PASSED: Continuous integration, rev:3278 /mir-jenkins. ubuntu. com/job/ mir-ci/ 225/ /mir-jenkins. ubuntu. com/job/ generic- update- mp/225/ console
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild: /mir-jenkins. ubuntu. com/job/ mir-ci/ 225/rebuild
https:/