10000 Minor refactor of CVE-2021-32765 fix. by michael-grunder · Pull Request #993 · redis/hiredis · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Minor refactor of CVE-2021-32765 fix. #993

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
Oct 10, 2021

Conversation

michael-grunder
Copy link
Collaborator
@michael-grunder michael-grunder commented Oct 7, 2021

Since hi_calloc is a wrapper that calls the configured calloc function,
we can perform this overflow check there, to protect any hi_calloc call.

Previous commit: 76a7b10

Related vuln ID: CVE-2021-32765
Full Details

@yossigo It was pointed out to me that we could incorporate this check within our hi_calloc wrapper itself. Let me know if if you see any issues with the change.

Copy link
Member
@yossigo yossigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michael-grunder Looks good to me.

Since `hi_calloc` always passes through one of our wrapper functions,
we can perform this overflow in the wrapper, and get protection
everywhere.

Previous commit: 76a7b10

Related vuln ID: CVE-2021-32765
[Full Details](GHSA-hfm9-39pp-55p2)
@michael-grunder michael-grunder force-pushed the minor-overflow-check-refactor branch from fb66f1c to 5e17da1 Compare October 10, 2021 18:13
@michael-grunder michael-grunder merged commit e489846 into master Oct 10, 2021
@michael-grunder michael-grunder deleted the minor-overflow-check-refactor branch October 10, 2021 18:13
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
0