Skip to content

Prevent another integer overflow in drawScreenTab()#1985

Open
Explorer09 wants to merge 1 commit intohtop-dev:mainfrom
Explorer09:screen-tab-bounds
Open

Prevent another integer overflow in drawScreenTab()#1985
Explorer09 wants to merge 1 commit intohtop-dev:mainfrom
Explorer09:screen-tab-bounds

Conversation

@Explorer09
Copy link
Copy Markdown
Contributor

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.

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 htop-dev#1984.

Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant