Skip to content

fix(load): verify value is pointer before attempting to deref - #161

Merged
spiffcs merged 1 commit into
anchore:mainfrom
theZMC:160-verify-pointers-before-deref
Sep 30, 2026
Merged

spiffcs merged 1 commit into
anchore:mainfrom
theZMC:160-verify-pointers-before-deref

Conversation

@theZMC

@theZMC theZMC commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

This PR fixes #160 by ensuring only pointer types are dereferenced when loading configuration flags.

Signed-off-by: Zach Callahan <zach@zmc.dev>
@spiffcs
spiffcs force-pushed the 160-verify-pointers-before-deref branch from 1e0d26e to c31c51e Compare September 21, 2026 16:20
@spiffcs
spiffcs merged commit ed81d30 into anchore:main Sep 30, 2026
10 checks passed
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.

getFlagRef panics on custom pflag.Value wrappers with value-backed value fields

2 participants