Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 200014f5 authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Discard mnc length value received in EF_AD if invalid.

Graceful handling instead of crashing for an error case.

Bug: 23095679
Change-Id: Iad6ff8e9530f0f96fd60d2674b4589098ce9d9e9
parent 406a0043
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -901,6 +901,9 @@ public class SIMRecords extends IccRecords {
                    if (mMncLength == 0xf) {
                        mMncLength = UNKNOWN;
                        log("setting5 mMncLength=" + mMncLength);
                    } else if (mMncLength != 2 && mMncLength != 3) {
                        mMncLength = UNINITIALIZED;
                        log("setting5 mMncLength=" + mMncLength);
                    }
                } finally {
                    if (((mMncLength == UNINITIALIZED) || (mMncLength == UNKNOWN) ||