-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: JavaScript
-
Query Execution
-
ALL
-
QE 2023-04-03
This appears to be a valid warning in our code:
FAILED: build/ninja/mongo/scripting/mozjs/jsstringwrapper.dyn.o PATH='/usr/local/bin:/opt/bin:/bin:/usr/bin' CCACHE_NOCPP2='1' ICECC_CARET_WORKAROUND='0' CCACHE_PREFIX='/home/ubuntu/mongo/build/scons/icecream/run-icecc.sh' /usr/bin/ccache /usr/bin/g++-10 @build/ninja/mongo/scripting/mozjs/jsstringwrapper.dyn.o.rsp In file included from /usr/include/string.h:494, from /usr/include/c++/10/cstring:42, from src/third_party/mozjs-60/include/mozilla/Span.h:33, from src/third_party/mozjs-60/include/mozilla/Range.h:12, from src/third_party/mozjs-60/include/jsapi.h:15, from src/mongo/scripting/mozjs/jsstringwrapper.h:33, from src/mongo/scripting/mozjs/jsstringwrapper.cpp:32: In function 'char* strncpy(char*, const char*, size_t)', inlined from 'mongo::mozjs::JSStringWrapper::JSStringWrapper(int32_t)' at src/mongo/scripting/mozjs/jsstringwrapper.cpp:48:12: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:34: error: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 64 equals destination size [-Werror=stringop-truncation] cc1plus: all warnings being treated as errors