Merge lp:~charlesk/indicator-session/lp-1290876-fix-null-dereference-in-get-user-label into lp:indicator-session/15.04
Proposed by
Charles Kerr
Status: | Merged |
---|---|
Approved by: | Ted Gould |
Approved revision: | 465 |
Merged at revision: | 463 |
Proposed branch: | lp:~charlesk/indicator-session/lp-1290876-fix-null-dereference-in-get-user-label |
Merge into: | lp:indicator-session/15.04 |
Diff against target: |
31 lines (+15/-6) 1 file modified
src/service.c (+15/-6) |
To merge this branch: | bzr merge lp:~charlesk/indicator-session/lp-1290876-fix-null-dereference-in-get-user-label |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ted Gould (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+254105@code.launchpad.net |
Commit message
Fix a crash in get_user_label() by testing a string pointer for NULL before dereferencing it.
Description of the change
Fix a crash in get_user_label() by testing a string pointer for NULL before dereferencing it.
Steps to test:
1. install this branch and restart indicator-session
2. edit /etc/password
3. remove the fullname portion of your current login's line:
- username:
+ username:
Expected results:
Instead of crashing, indicator-session's user section should change your current login's menuitem from "Full Name" to "username"
To post a comment you must log in.
PASSED: Continuous integration, rev:463 jenkins. qa.ubuntu. com/job/ indicator- session- ci/149/ jenkins. qa.ubuntu. com/job/ indicator- session- vivid-amd64- ci/1 jenkins. qa.ubuntu. com/job/ indicator- session- vivid-armhf- ci/1 jenkins. qa.ubuntu. com/job/ indicator- session- vivid-armhf- ci/1/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/indicator- session- ci/149/ rebuild
http://