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

Skip to content
Commit 8dab1730 authored by Pawin Vongmasa's avatar Pawin Vongmasa
Browse files

AMessage::FromParcel(): Limit recursion depth; report NULL on failure.

- FromParcel() now takes as an optional parameter the maximum recursion depth.
  (The default value is currently set to 255.) On the event that the input
  parcel has AMessage nested deeper than the maximum recursion depth,
  FromParcel() will return NULL.
- Also, when the input parcel has items that are not recognized by FromParcel(),
  NULL will be returned. (The old behavior was to invoke TRESPASS, which would
  cause the process to stop.)

Bug: 28332724
Change-Id: I722097f7d1711668f197651d7e8135d703f6c91f
parent 0b667e2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment