SERVER-138088ClosedFixed

UBSan negation of INT_MIN in ordered_ticket_semaphore_fuzz_test FuzzPriorityOrdering

h2. Problem {{FuzzPriorityOrdering}} in {{src/mongo/db/admission/ticketing/ordered_ticket_semaphore_fuzz_test.cpp}} normalizes each fuzzed {{int32_t}} admission count with {{c = std::abs(c) % 1000}} (line 42). The domain is {{fuzztest::VectorOf(fuzztest::Arbitrary<int32_t>()).WithMinSize(1).WithMaxSize(16)}} (lines 136-137), which includes {{-2147483648}} ({{INT_MIN}}). {{std::abs}} on a signed {{int}} of that value is undefined: the negation cannot be represented. UBSan aborts the test and {{li

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.