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
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