Skip to content
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

Fix UB in EvalScript #1212

Merged
merged 2 commits into from
Dec 6, 2022
Merged

Fix UB in EvalScript #1212

merged 2 commits into from
Dec 6, 2022

Conversation

ghost
Copy link

@ghost ghost commented Nov 18, 2022

PR intention

Fix UB in EvalScript.

Code changes brief

Prevent the construction of pointers offset from nullptr.

@reubenyap reubenyap merged commit bd9190d into master Dec 6, 2022
@reubenyap reubenyap deleted the script-ub-fix branch December 6, 2022 12:49
levonpetrosyan93 pushed a commit that referenced this pull request May 17, 2023
* Do not construct out-of-bound pointers in SHA512/SHA1/RIPEMD160 code

* Fix UB resulting from a bad pointer construction in CSHA256::Write.

Co-authored-by: Pieter Wuille <[email protected]>
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.

3 participants