Skip to content

Conversation

@khwilliamson
Copy link
Contributor

Previously, malformed input would result in a 0 version

By redeclaring two variables that are not otherwise used to be U8 and not char, several casts can be avoided.

  • This set of changes does not require a perldelta entry.

Previously, malformed input would result in a 0 version

By redeclaring two variables that are not otherwise used to be U8 and
not char, several casts can be avoided.
Copy link
Contributor

@tonycoz tonycoz left a comment

Choose a reason for hiding this comment

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

I'm pretty sure you can't get an invalidly encoded code-point here.

The PV is constructed by Perl_scan_vstring().

@khwilliamson khwilliamson merged commit d04bc98 into Perl:blead Apr 3, 2025
@khwilliamson khwilliamson deleted the str_to_version branch April 23, 2025 11:52
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