Operational Defect Database

BugZero found this defect 60 days ago.

MongoDB | 2614793

Make hashing function of ExpressionFieldPath consistent with its comparison function.

Last update date:

3/21/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

`ExpressionFieldPath::serialize` which is used for comparison does not take into account `variableId`, while its hash function does use `variableId` to compute its hash. As a result two identical expressions which define the same variables using `let` sub expression can have different hash values just because their `variableId`s fields are different.

Top User Comments

xgen-internal-githook commented on Thu, 21 Mar 2024 00:12:03 +0000: Author: {'name': 'Alexander Ignatyev', 'email': 'alexander.ignatyev@mongodb.com', 'username': 'aligusnet'} Message: SERVER-88288 Make hashing function of ExpressionFieldPath consistent with its comparison function (#20214) GitOrigin-RevId: 96a943f40281981f13041a84bce738d17e96e9f4 Branch: master https://github.com/mongodb/mongo/commit/b7c7077d423e5abe02cd99a714581c84d182c8f0

Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

In Code Review

Learn More

Search:

...