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

Commit be8881da authored by Sooraj Sasindran's avatar Sooraj Sasindran Committed by Gerrit Code Review
Browse files

Merge "Allocate memory before reading from parcel"

parents 6bb663bc 760a240d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -110,6 +110,7 @@ public final class AvailableNetworkInfo implements Parcelable {
    private AvailableNetworkInfo(Parcel in) {
        mSubId = in.readInt();
        mPriority = in.readInt();
        mMccMncs = new ArrayList<>();
        in.readStringList(mMccMncs);
    }

+1 −1
Original line number Diff line number Diff line
@@ -9796,7 +9796,7 @@ public class TelephonyManager {
        boolean ret = false;
        try {
            IOns iOpportunisticNetworkService = getIOns();
            if (iOpportunisticNetworkService != null) {
            if (iOpportunisticNetworkService != null && availableNetworks != null) {
                ret = iOpportunisticNetworkService.updateAvailableNetworks(availableNetworks,
                        pkgForDebug);
            }