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

[Symfony Lock] possible lock id collision in DoctrineDbalPostgreSqlStore #58838

Open
@FractalizeR

Description

@FractalizeR

Symfony version(s) affected

7.1.0

Description

https://github.com/symfony/lock/blob/7.1/Store/DoctrineDbalPostgreSqlStore.php#L233

Here we take CRC32 from key's name to make a call to Postgres'spg_advisory_lock. Butpg_advisory_lock takesint64 as a parameter and we can make it part ofshaxxx()'s result, for instance. CRC32 is not very collision-resistant and in case application has many locks active, it may degrade.

How to reproduce

https://github.com/symfony/lock/blob/7.1/Store/DoctrineDbalPostgreSqlStore.php#L233

Possible Solution

Move to more collision resistant hash generation function.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp