Skip to content

Avoid UB in huffbench #190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 13, 2024
Merged

Avoid UB in huffbench #190

merged 1 commit into from
Dec 13, 2024

Conversation

nikic
Copy link
Contributor

@nikic nikic commented Dec 12, 2024

The --heap results in an out of bounds pointer index. Fix this by subtracting 1 during indexing instead.

The `--heap` results in an out of bounds pointer index. Fix this
by subtracting 1 during indexing instead.
@serge-sans-paille
Copy link

Looks good, funny to see a benchmark having some UB ^^!

@serge-sans-paille
Copy link

I have access to a machine where I was able to reproduce the issue, let me confirm your patch works.

@serge-sans-paille
Copy link

works like a charm!

@nikic nikic merged commit 4d1cd7c into llvm:main Dec 13, 2024
1 check 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.

2 participants