Catch malformed NOTIFY-IND

Fixes #2508

// FREEBIE
fork-5.53.8
Moxie Marlinspike 2015-03-31 09:12:22 -07:00
rodzic 6181dc4037
commit e70298e624
1 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -40,8 +40,14 @@ public class MmsReceiveJob extends ContextJob {
return;
}
PduParser parser = new PduParser(data);
GenericPdu pdu = parser.parse();
PduParser parser = new PduParser(data);
GenericPdu pdu = null;
try {
pdu = parser.parse();
} catch (RuntimeException e) {
Log.w(TAG, e);
}
if (pdu != null && pdu.getMessageType() == PduHeaders.MESSAGE_TYPE_NOTIFICATION_IND) {
MmsDatabase database = DatabaseFactory.getMmsDatabase(context);