GoogleGit

commit567ea1111c8a2f730f269ebe76c7da1ba1708852[log][tgz]
authorJake Hamby <jhamby@google.com>Tue Dec 03 13:21:40 2013 -0800
committerThe Android Automerger <android-build@google.com>Tue Dec 03 15:55:23 2013 -0800
treed902aafb8b004af19288b8f82afd5a74c9751a3a
parent449cbf85380bd1d6716b7ab002da1efb9493bb02[diff]
Fix OOBE crash/DoS after receiving 0-byte WAP push.

Add a try/catch block around the code in WapPushOverSms.dispatchWapPdu(),
so we don't get into a reboot trap on receiving weirdly formed messages.
Only catch ArrayIndexOutOfBoundsException, which is difficult to
prevent inside dispatchWapPdu() for 0-byte PDUs or other unusual
contents. The caller should probably catch any unhandled exceptions of other types and log them with stack traces.

Bug: 11967705
Change-Id: Iabfec68d2564dd438d45c80cdba877bf19fa0397
1 file changed
tree: d902aafb8b004af19288b8f82afd5a74c9751a3a
  1. Android.mk
  2. CleanSpec.mk
  3. README.txt
  4. src/
  5. tests/
  6. tools/