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

Commit c1e1c472 authored by Madan Ankapura's avatar Madan Ankapura
Browse files

fixes buffer overflow for data



Change-Id: Ia1fc89b2fe0fc84ca540fef2783b95f8f9952d6f
Signed-off-by: default avatarMadan Ankapura <mankapur@sta.samsung.com>
parent 801aa9f3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -116,7 +116,8 @@ public final class CdmaLteUiccRecords extends SIMRecords {
            int encoding = data[1];
            int language = data[2];
            byte[] spnData = new byte[32];
            System.arraycopy(data, 3, spnData, 0, (data.length < 32) ? data.length : 32);
            int len = ((data.length - 3) < 32) ? (data.length - 3) : 32;
            System.arraycopy(data, 3, spnData, 0, len);

            int numBytes;
            for (numBytes = 0; numBytes < spnData.length; numBytes++) {