Skip to content

Validate the worker id in profile-docker-container - #9009

Merged
rzo1 merged 1 commit into
worker-launcher-reap-oci-containerfrom
worker-launcher-profile-docker-container
Aug 23, 2026
Merged

Validate the worker id in profile-docker-container#9009
rzo1 merged 1 commit into
worker-launcher-reap-oci-containerfrom
worker-launcher-profile-docker-container

Conversation

@reiabreu

Copy link
Copy Markdown
Contributor

profile-docker-container now checks the worker id with validate_container_id before get_docker_container_pid builds the docker command line, and get_docker_container_pid returns pid -1 instead of dereferencing a NULL stream when popen fails.

Stacked on #9008 (targets that branch); GitHub will retarget this to master once #9008 merges.

How this was tested

Built the worker-launcher native tree with autoreconf -i && ./configure && make check (autotools, compiled with -Werror); the test suite passes.

profile-docker-container now checks the worker id with validate_container_id
before get_docker_container_pid builds the docker command line, and
get_docker_container_pid returns pid -1 instead of dereferencing a NULL
stream when popen fails.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@GGraziadei GGraziadei left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@rzo1
rzo1 merged commit 31b8cbe into worker-launcher-reap-oci-container Aug 23, 2026
1 check passed
@rzo1 rzo1 added this to the 3.1.0 milestone Aug 23, 2026
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.

3 participants