Skip to content

fix: Heatmap bucket limit only enforced for TYPE_INT attributes - #8367

Draft
phacops wants to merge 2 commits into
masterfrom
warden-sweep/fb25aef5/security-review-fbecf938
Draft

fix: Heatmap bucket limit only enforced for TYPE_INT attributes#8367
phacops wants to merge 2 commits into
masterfrom
warden-sweep/fb25aef5/security-review-fbecf938

Conversation

@phacops

@phacops phacops commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Apply MAX_BUCKETS to heatmap x/y bucket counts regardless of attribute type.

Callers can set an arbitrarily large num_y_buckets whenever y_attribute.type is not TYPE_INT (e.g. TYPE_DOUBLE), bypassing MAX_BUCKETS and forcing huge in-memory allocations in range() and [0.0] * num_y_buckets during query result shaping.

Automated fix for Warden finding security-review-fbecf938 (medium, detected by security-review).

Ref #8362

This PR was auto-generated by a Warden Sweep (run fb25aef5).
The finding has been validated through automated deep tracing,
but human confirmation is requested as this is batch work.

Warden finding security-review-fbecf938
Severity: medium

Co-Authored-By: Warden <noreply@getsentry.com>
@phacops phacops added the warden Automated fix from Warden Sweep label Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Security Security finding warden Automated fix from Warden Sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant