Merge lp:~larsu/unity/lp1495173 into lp:unity
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Andrea Azzarone on 2015-09-17 | ||||
| Approved revision: | 4009 | ||||
| Merged at revision: | 4012 | ||||
| Proposed branch: | lp:~larsu/unity/lp1495173 | ||||
| Merge into: | lp:unity | ||||
| Diff against target: |
11 lines (+1/-1) 1 file modified
launcher/DevicesSettingsImp.cpp (+1/-1) |
||||
| To merge this branch: | bzr merge lp:~larsu/unity/lp1495173 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | Needs Fixing on 2015-09-17 | |
| Andrea Azzarone | 2015-09-17 | Approve on 2015-09-17 | |
|
Review via email:
|
|||
Commit Message
DevicesSettingsImp: dont't feed garbage to gsettings
Use a const reference for the iteration variable in the loop over _blacklist so that the pointers returned from c_str() are still valid when feeding them to g_settings_
In the best case, this only wrote garbage to the "blacklist" key (making that setting useless). In the worst case, it led to a crash because the garbage was invalid utf8, which gsettings refuses to accept.
Fixes LP: #1495173
Description of the Change
DevicesSettingsImp: dont't feed garbage to gsettings
Use a const reference for the iteration variable in the loop over _blacklist so that the pointers returned from c_str() are still valid when feeding them to g_settings_
In the best case, this only wrote garbage to the "blacklist" key (making that setting useless). In the worst case, it led to a crash because the garbage was invalid utf8, which gsettings refuses to accept.
Fixes LP: #1495173
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:4009
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
FAILURE: http://
Click here to trigger a rebuild:
http://


LGTM.