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

rust: fix build with MSRV #10673

Closed
wants to merge 1 commit into from

Conversation

catenacyber
Copy link
Contributor

Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/6876

Describe changes:

  • rust: fix build with MSRV

Ticket: 6876

Do not backport try_string_from_bytes as it uses try_reserve
And just use string_from_bytes instead

Fixes: b9963b3 ("ssh: limit length for banner logs")
@victorjulien
Copy link
Member

Is there any practical effect from this change?

@catenacyber
Copy link
Contributor Author

Rust panics on allocation failure

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 19636

@catenacyber
Copy link
Contributor Author

The original commit created set_string_from_bytes_limited by copy/pasting set_string_from_bytes

In master set_string_from_bytes uses try_string_from_bytes, In master-6.0.x, it uses string_from_bytes

So, this PR looks like the good way to backport the original commit

@victorjulien
Copy link
Member

Merged in #10679, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants