commit | 90595f186d00a0e6ad63e95e4226e34f139627f7 | [log] [tgz] |
---|---|---|
author | Oliver Stannard <oliver.stannard@arm.com> | Tue Feb 18 14:55:52 2020 +0000 |
committer | Oliver Stannard <oliver.stannard@arm.com> | Wed Feb 19 13:25:15 2020 +0000 |
tree | 67f61028a61fe58c4b7e49baacc38e4ab0adf5d2 | |
parent | c04a7178a3a50fe919964df59b041c5671db50f7 [diff] |
Fix undefined behaviour in ldecod The NUM_BLOCK_TYPES macro is defined to 10, but the arrays in ctx_tables.h only have 8 elements in the relevant dimension, so this was causing out of bounds array accesses, and segfaults if we were (un)lucky. I don't know enough about H264 decoding to know if this is the right fix, but it fixes the segfault currently affecting the Arm LNT bot, and doesn't change the expected output. Differential revision: https://reviews.llvm.org/D74770