Mir

Merge lp:~alan-griffiths/mir/fix-1667645-for-0.26 into lp:~mir-team/mir/0.26-old

Proposed by Alan Griffiths
Status: Merged
Merged at revision: 4033
Proposed branch: lp:~alan-griffiths/mir/fix-1667645-for-0.26
Merge into: lp:~mir-team/mir/0.26-old
Diff against target: 25 lines (+5/-0)
2 files modified
debian/changelog (+2/-0)
src/server/scene/application_session.cpp (+3/-0)
To merge this branch: bzr merge lp:~alan-griffiths/mir/fix-1667645-for-0.26
Reviewer Review Type Date Requested Status
Daniel van Vugt Approve
Brandon Schaefer (community) Approve
Review via email: mp+318254@code.launchpad.net

Commit message

Don't dereference the end iterator in ms::ApplicationSession::surface_after() (LP: #1667645)

To post a comment you must log in.
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

This would be good to get in

review: Approve
Revision history for this message
Daniel van Vugt (vanvugt) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2017-02-23 14:16:59 +0000
+++ debian/changelog 2017-02-24 17:23:50 +0000
@@ -11,6 +11,8 @@
11 mir::gl::tessellate_renderable_into_rectangle() (LP: #1664760)11 mir::gl::tessellate_renderable_into_rectangle() (LP: #1664760)
12 . Nested servers (Unity8) periodically stutter (half frame rate) with12 . Nested servers (Unity8) periodically stutter (half frame rate) with
13 Mir 0.26.1 (LP: #1666372)13 Mir 0.26.1 (LP: #1666372)
14 . Don't dereference the end iterator in ms::ApplicationSession::
15 surface_after() (LP: #1667645)
1416
15 -- Daniel van Vugt <daniel.van.vugt@canonical.com> Mon, 20 Feb 2017 13:37:13 +080017 -- Daniel van Vugt <daniel.van.vugt@canonical.com> Mon, 20 Feb 2017 13:37:13 +0800
1618
1719
=== modified file 'src/server/scene/application_session.cpp'
--- src/server/scene/application_session.cpp 2017-02-02 18:25:05 +0000
+++ src/server/scene/application_session.cpp 2017-02-24 17:23:50 +0000
@@ -235,6 +235,9 @@
235 if (next == surfaces.end())235 if (next == surfaces.end())
236 next = std::find_if(begin(surfaces), current, can_take_focus);236 next = std::find_if(begin(surfaces), current, can_take_focus);
237237
238 if (next == end(surfaces))
239 return {};
240
238 return next->second;241 return next->second;
239}242}
240243

Subscribers

People subscribed via source and target branches