Skip to content

fix(daemon): fix regex caching bug - #103

Merged
Patel230 merged 1 commit into
mainfrom
fix/hawk-daemon-security
Jul 17, 2026
Merged

fix(daemon): fix regex caching bug#103
Patel230 merged 1 commit into
mainfrom
fix/hawk-daemon-security

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Fix regex caching vulnerability in hawk daemon. Security hardening.

Fixed a Go semantics bug where the regex result from LoadOrStore was
being shadowed in a variable declaration, causing an 'undefined: re'
error at the return statement for new cache entries.

The fix properly extracts 're' and 'loaded' from LoadOrStore and
uses them correctly in both branches.
@Patel230
Patel230 merged commit b32789c into main Jul 17, 2026
9 of 10 checks passed
@Patel230
Patel230 deleted the fix/hawk-daemon-security branch July 17, 2026 06:59
Patel230 added a commit that referenced this pull request Jul 28, 2026
…103)

Fixed a Go semantics bug where the regex result from LoadOrStore was
being shadowed in a variable declaration, causing an 'undefined: re'
error at the return statement for new cache entries.

The fix properly extracts 're' and 'loaded' from LoadOrStore and
uses them correctly in both branches.
Patel230 added a commit that referenced this pull request Aug 1, 2026
The previous pin (d366bf2) lived on the feature branch and became
unreachable once PR #103 was squash-merged; evaluation used the
published module pseudo-version which no longer resolves.
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