commit | 2ee3f9751f80d2545687763840c01dcca2f6b487 | [log] [tgz] |
---|---|---|
author | Ryan Savitski <rsavitski@google.com> | Tue Apr 02 15:16:38 2019 +0100 |
committer | Ryan Savitski <rsavitski@google.com> | Tue Apr 02 15:16:38 2019 +0100 |
tree | c317bf996a04881e6068c72c07baf14e88530940 | |
parent | 2c56916c8c6a1d43e789bc20f46c0cf5b5c16bca [diff] |
trace_processor: ParsePowerRails: skip huge power rail indices This is in response to the oss-fuzz issue where it constructs a message with uint32_t index of max size , and then overflowing the resize's `idx+1` parameter to 0. We could instead avoid overflow in the calculation - but that still means that parsing power rails could allocate 1<<32 elements, which feels wrong. Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14018 Change-Id: I27cdc7184ef646081083788e690ac13e6696a7f3
Perfetto is an open-source project for performance instrumentation and tracing of Linux/Android/Chrome platforms and user-space apps.
See www.perfetto.dev for docs.