Commit 64fce83
committed
Prevent another integer overflow in drawScreenTab()
Specifically there's an integer overflow potential in
(x + 1 + SCREEN_TAB_COLUMN_GAP). Fix it with a better clamping logic.
Follow-up of commit e9e8001
Supersedes #1984.
Signed-off-by: Kang-Che Sung <explorer09@gmail.com>1 parent e92007b commit 64fce83
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
| 188 | + | |
| 189 | + | |
190 | 190 | | |
| 191 | + | |
| 192 | + | |
191 | 193 | | |
192 | 194 | | |
193 | 195 | | |
| |||
0 commit comments