commit | 44dad74558616adcdf54a289db4466c7ab7d2563 | [log] [tgz] |
---|---|---|
author | Oliver Stannard <oliver.stannard@linaro.org> | Mon Mar 30 14:04:38 2020 +0100 |
committer | Oliver Stannard <oliver.stannard@linaro.org> | Mon Mar 30 14:05:59 2020 +0100 |
tree | e8d99021ad3f987d1bba7a2ea2f9ad98a60178a1 | |
parent | 60afc42e311b7996a973779fbdf297e1cb57dea9 [diff] |
[test-suite] Work around undefined behaviour in lencod 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. This is almost exactly the same change as was made to ldecod in D74770. Differential revision: https://reviews.llvm.org/D77051