-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
ALL
-
QE 2022-09-19, QE 2022-10-03, QE 2022-10-17, QE 2022-10-31, QE 2022-11-14, QE 2022-11-28, QE 2022-12-12, QE 2022-12-26
-
59
We could experience some unexpected, implementation-defined behavior if the components of the timestamp are doubles with values outside the allowed integer range.
src/mongo/scripting/mozjs/valuewriter.cpp:302:22: warning: narrowing conversion from 'double' to 'unsigned int' [bugprone-narrowing-conversions]
return Timestamp(wrapper.getNumber("t"), wrapper.getNumber("i"));
^
src/mongo/scripting/mozjs/valuewriter.cpp:302:46: warning: narrowing conversion from 'double' to 'unsigned int' [bugprone-narrowing-conversions]
return Timestamp(wrapper.getNumber("t"), wrapper.getNumber("i"));
^
src/mongo/scripting/mozjs/valuewriter.cpp:453:30: warning: narrowing conversion from 'double' to 'unsigned int' [bugprone-narrowing-conversions]
Timestamp ot(o.getNumber("t"), o.getNumber("i"));
^
src/mongo/scripting/mozjs/valuewriter.cpp:453:48: warning: narrowing conversion from 'double' to 'unsigned int' [bugprone-narrowing-conversions]
Timestamp ot(o.getNumber("t"), o.getNumber("i"));
- causes
-
SERVER-72446 jstests/core/validate_js_timestamp.js fails on multiversion suites
- Closed
- is related to
-
SERVER-68309 Investigate for unsafe narrowing conversions
- Closed