Commit 36630d2
committed
TRD: Base: Fix possible segfault
Returning -1 here leads to overflow indexing in mData, which is a
possbile segfault.
Just warning and returning 0 is safe enough here.
Signed-off-by: Felix Schlepper <f3sch.git@outlook.com>1 parent d8ef9c5 commit 36630d2
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | 77 | | |
80 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
0 commit comments