rilmodem: Do not always use sim's app in status->gsm_umts_index
Bug #1427788 reported by
Ratchanan Srirattanamet
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
High
|
Unassigned | ||
ofono (Ubuntu) |
Fix Released
|
High
|
Tony Espy |
Bug Description
In driver/
The code then checks if the card_state returned by the GET_SIM_STATUS reply is PRESENT and search_index is less than num_apps. If both are true, search_index is used to index the returned reply_sim_app array ( which leads to undefined behavior if the index is negative ) and then passed to configure_
The code should check search index, and if negative and num_apps >=1, set search_index to 0.
ofono version 1.12.bzr6888+
Device: LG L90 Dual (I'm doing a port.)
Related branches
lp://staging/~phablet-team/ofono/ota4-update
- Alfonso Sanchez-Beato: Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 1621 lines (+900/-245)19 files modifiedMakefile.am (+3/-0)
debian/changelog (+32/-0)
doc/connman-api.txt (+11/-0)
drivers/qcommsimmodem/qcom_msim_constants.h (+27/-0)
drivers/rilmodem/sim.c (+195/-31)
drivers/rilmodem/vendor.h (+2/-1)
gril/grilreply.c (+33/-0)
gril/grilreply.h (+3/-0)
gril/grilrequest.c (+44/-0)
gril/grilrequest.h (+10/-0)
plugins/qcom-msim.c (+76/-0)
plugins/ubuntu-apndb.c (+4/-2)
src/gprs.c (+229/-133)
test/create-ia-context (+0/-47)
test/list-modems (+46/-1)
test/reset-contexts (+20/-0)
test/set-context-property (+63/-30)
unit/test-grilreply.c (+56/-0)
unit/test-grilrequest.c (+46/-0)
Changed in ofono (Ubuntu): | |
status: | New → Confirmed |
assignee: | nobody → Tony Espy (awe) |
importance: | Undecided → High |
description: | updated |
Changed in canonical-devices-system-image: | |
importance: | Undecided → High |
milestone: | none → ww22-2015 |
status: | New → In Progress |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Proposed fix in:
https:/ /github. com/rilmodem/ ofono/pull/ 166