Skip to content

chore: track upstream tklauser/ps changes#4306

Open
cgrinds wants to merge 1 commit into
mainfrom
cbg-ps
Open

chore: track upstream tklauser/ps changes#4306
cgrinds wants to merge 1 commit into
mainfrom
cbg-ps

Conversation

@cgrinds
Copy link
Copy Markdown
Collaborator

@cgrinds cgrinds commented May 28, 2026

No description provided.

@cgrinds cgrinds requested a review from rahulguptajss as a code owner May 28, 2026 13:43
Copilot AI review requested due to automatic review settings May 28, 2026 13:43
@cgrinds cgrinds requested a review from Hardikl as a code owner May 28, 2026 13:43
@cla-bot cla-bot Bot added the cla-signed label May 28, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the vendored third_party/tklauser/ps process parsing code to align with upstream changes, primarily improving robustness when parsing process metadata on Linux/NetBSD and macOS.

Changes:

  • Hardened /proc/[pid]/stat parsing by validating the command field delimiters before extracting fields.
  • Hardened macOS kern.procargs2 parsing by handling missing NUL terminators and avoiding unsafe slicing.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
third_party/tklauser/ps/process_procfs_stat.go Adds validation around parsing comm from /proc/[pid]/stat and updates the manpage reference.
third_party/tklauser/ps/process_darwin.go Makes argument parsing resilient to malformed/unterminated procargs buffers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread third_party/tklauser/ps/process_procfs_stat.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants