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

Commit 54422956 authored by Jack Yu's avatar Jack Yu Committed by Android (Google) Code Review
Browse files

Merge "Fixed that processing malformed PDUs stored in the intent caused crash."

parents b4f35707 efea9671
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -490,6 +490,12 @@ public class GpsLocationProvider implements LocationProviderInterface {

    private void checkSmsSuplInit(Intent intent) {
        SmsMessage[] messages = Intents.getMessagesFromIntent(intent);

        if (messages == null) {
            Log.e(TAG, "Message does not exist in the intent.");
            return;
        }

        for (int i=0; i <messages.length; i++) {
            byte[] supl_init = messages[i].getUserData();
            native_agps_ni_message(supl_init,supl_init.length);