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

Minor improvements #161

Merged
merged 2 commits into from
Nov 5, 2023
Merged

Minor improvements #161

merged 2 commits into from
Nov 5, 2023

Conversation

00xc
Copy link
Contributor

@00xc 00xc commented Nov 4, 2023

  • Use from_le_bytes() instead of manually building an integer from bytes.
  • Use CString::from_vec_unchecked() to get a new CString, as all zero bytes have been removed, improving performance. In debug builds, this function will still check if any zero bytes are present.

Instead of manually bulding an integer from bytes, use the
`from_le_bytes()` method that all integer types implement.
Use CString::from_vec_unchecked() to get a new CString, as all zero
bytes have been removed, improving performance. In debug builds, this
function will still check if any zero bytes are present.
@Manishearth Manishearth merged commit 2a0077f into rust-fuzz:main Nov 5, 2023
5 checks 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