Skip to content

Fix for buffer overflow in [Data|SECP256K1].randomBytes() #481

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 2 commits into from
Mar 23, 2022
Merged

Fix for buffer overflow in [Data|SECP256K1].randomBytes() #481

merged 2 commits into from
Mar 23, 2022

Conversation

mloit
Copy link
Contributor

@mloit mloit commented Mar 14, 2022

fix buffer overrun issue (fixes #470) where initialization with random bytes ignored the passed length and used a fixed length of 32 bytes. This results in only the first 32 bytes of larger objects being initialized, and overruns beyond the end for smaller objects.

…s ignored the passed length and used a fixed length of 32 bytes. This results in only the first 32 bytes of larger objects being initialized, and overruns beyond the end for smaller objects.
@mloit mloit changed the title Fix for buffer overrun on random initialization Fix for buffer overrun in [Data|SECP356K1].randomBytes() Mar 15, 2022
@mloit mloit changed the title Fix for buffer overrun in [Data|SECP356K1].randomBytes() Fix for buffer overflow in [Data|SECP356K1].randomBytes() Mar 15, 2022
@mloit mloit changed the title Fix for buffer overflow in [Data|SECP356K1].randomBytes() Fix for buffer overflow in [Data|SECP256K1].randomBytes() Mar 15, 2022
@yaroslavyaroslav yaroslavyaroslav self-requested a review March 17, 2022 14:58
@yaroslavyaroslav yaroslavyaroslav merged commit e1b0306 into web3swift-team:develop Mar 23, 2022
@mloit mloit deleted the fix-random-init branch March 23, 2022 12:05
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.

Potential Buffer Overrun
3 participants