mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
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 67e49a7f65)
This commit is contained in:
parent
c2ed693501
commit
8d5debbcc6
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ class IntTable:
|
|||
[static] const typename name[] = { ... };
|
||||
to filp.
|
||||
"""
|
||||
idxs = sorted(self.idxs) + [-1]
|
||||
idxs = sorted(self.idxs) + [len(self.table)]
|
||||
|
||||
fragments = [
|
||||
('\t/* %s */ %s' % (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue