OSDN Git Service

amd/common: fix off-by-one in sid_tables.py
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 6 Jun 2017 17:17:49 +0000 (19:17 +0200)
committerAndres Gomez <agomez@igalia.com>
Wed, 28 Jun 2017 17:17:13 +0000 (20:17 +0300)
commit8d5debbcc64b5e31d9f39b1a4de73f1df6f86eb1
tree4f94a7097500e3e3127ca66123db7e27f71985db
parentc2ed6935015655fa21772284a9998b918e406f04
amd/common: fix off-by-one in sid_tables.py

The very last entry in the sid_strings_offsets table ended up missing,
leading to out-of-bounds reads and potential crashes.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
(cherry picked from commit 67e49a7f6570b8691d9405cb65f263b87817fe71)
src/amd/common/sid_tables.py