Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Uid] Fix fromString() with low base58 values#41801

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:5.2fromfancyweb:uid/fixes
Jun 23, 2021

Conversation

@fancyweb
Copy link
Contributor

QA
Branch?5.2
Bug fix?yes
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

When converting base58 values to binary, we forgot to pad the result with null byte, so if the result is too "short", the code breaks.


publicfunctiontestNilUuid()
/**
* @testWith ["00000000-0000-0000-0000-000000000000"]

Choose a reason for hiding this comment

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

nice one :)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

testWith whenever I can now 😎

@nicolas-grekas
Copy link
Member

Good catch, thanks@fancyweb.

@nicolas-grekasnicolas-grekas merged commit67c3ffa intosymfony:5.2Jun 23, 2021
@fancywebfancyweb deleted the uid/fixes branchJune 24, 2021 07:23
This was referencedJun 30, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@derrabusderrabusderrabus approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

5.2

Development

Successfully merging this pull request may close these issues.

4 participants

@fancyweb@nicolas-grekas@derrabus@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp