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 a crash in UtxoId::from_str and TxPointer::from_str with multibyte characters #531

Merged
merged 4 commits into from
Jul 27, 2023

Conversation

Dentosal
Copy link
Member

Fixes #521. Adds clippy lints to disallow raw string slicing, so this wont happen again so easily.

@Dentosal Dentosal added bug Something isn't working tech-debt fuel-tx Related to the `fuel-tx` crate. labels Jul 27, 2023
@Dentosal Dentosal self-assigned this Jul 27, 2023
@Dentosal Dentosal marked this pull request as ready for review July 27, 2023 06:08
@Dentosal Dentosal requested a review from a team July 27, 2023 06:10
@@ -4,6 +4,7 @@
// Wrong clippy convention; check
// https://rust-lang.github.io/api-guidelines/naming.html
#![allow(clippy::wrong_self_convention)]
#![deny(clippy::string_slice)]
Copy link
Member

Choose a reason for hiding this comment

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

should we also add this to the fuel-types lib.rs?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll do that as a follow-up, as I'm alreaady doing parsing changes as a part of #533

@Dentosal Dentosal added this pull request to the merge queue Jul 27, 2023
Merged via the queue into master with commit a37acdf Jul 27, 2023
31 checks passed
@Dentosal Dentosal deleted the dento/fix-str-slice-issues branch July 27, 2023 19:42
@xgreenx xgreenx mentioned this pull request Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fuel-tx Related to the `fuel-tx` crate. tech-debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Decoding of UtxoId with multibyte characters can panic
2 participants