Skip to content

Reset cache values when setting comm value#473

Merged
fasterit merged 1 commit intohtop-dev:masterfrom
cgzones:comm
Feb 2, 2021
Merged

Reset cache values when setting comm value#473
fasterit merged 1 commit intohtop-dev:masterfrom
cgzones:comm

Conversation

@cgzones
Copy link
Copy Markdown
Member

@cgzones cgzones commented Jan 12, 2021

Maybe fixes #361

/cc @BenBE

@BenBE
Copy link
Copy Markdown
Member

BenBE commented Jan 12, 2021

The overall usage of basenameOffset seems a bit strange too. Looking at Process_writeCommand you can get len for the call to RichString_setAttrn to quite a bit negative. This looks fishy.

Also some other places using these variables do not seem to do proper bound checking. Will look into this in #388.

Copy link
Copy Markdown
Member

@BenBE BenBE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks quite reasonable, but there are still several other of the offset variables, that can go astray.

@fasterit fasterit merged commit de3e271 into htop-dev:master Feb 2, 2021
@cgzones cgzones deleted the comm branch February 2, 2021 16:47
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.

Crash in LinuxProcess_makeCommandStr()

3 participants