-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:
-
Query Optimization
-
ALL
Bad bit shift operation
The operation may have an undefined behavior or yield an unexpected result. A bit shift operation has a shift amount which is too large or has a negative value.
/src/mongo/db/query/optimizer/cascades/logical_rewriter.cpp:1346: BAD_SHIFT 135326 Assigning: "reqSize" = "reqMap->numConjuncts()". The value of "reqSize" is now 0.
/src/mongo/db/query/optimizer/cascades/logical_rewriter.cpp:1347: BAD_SHIFT 135326 In expression "1ULL << reqSize - 1UL", shifting by a negative amount has undefined behavior. The shift amount, "reqSize - 1UL", is -1.