commit | e2de9e4e26f6107f6305e211ba9e0f3cd5f7b699 | [log] [tgz] |
---|---|---|
author | Devin Moore <devinmoore@google.com> | Fri Oct 02 08:55:08 2020 -0700 |
committer | Devin Moore <devinmoore@google.com> | Fri Oct 02 19:45:29 2020 +0000 |
tree | ea476b5378398608fcb13760766b652ac75fdec4 | |
parent | 474754d226cc7b04b850c74a7ed1ae323fe66c3f [diff] |
Handle constexpr shift left 0 of max bits __builtin_clz(0) is undefined and was causing a failure to be missed locally, but it was caught by the fuzzer. Handle the 0 case by returning the max number of bits in that type. Make sure left shift exponent doesn't excede the number of bits in the type when it is 0. Test: aidl_parser_fuzzer tests/corpus/shift_zero_left_32 Fixes: 169905365 Change-Id: If3f22c423b0b1904be4aa91b178c7a0eb2f0f8ec
Documentation for this project is currently maintained here:
https://source.android.com/devices/architecture/aidl/overview