github / github/codeql

Problems encountered by codeql in building chromium QL library 2

Đang mở
#13,489 13 bình luận 0 reaction 0 người được giao Xem trên GitHub
question
Ngôn ngữ chính
CodeQL
Star
10.1k
Fork
2.1k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
141

Mô tả

According to the method mentioned [here](https://github.com/github/securitylab/blob/main/CodeQL_Queries/cpp/Chrome/README.md),
i removed \out\debug\obj\components\autofill

```
codeql:2.13.3.0
error:
"../../third_party/protobuf/src/google/protobuf/arena.h", line 486: error: no instance of overloaded "operator new" matches the argument list
argument types are: (unsigned int, void *)
return new (ptr) T(static_cast(args)...);

[T 20:53:09 24244] invocation: D:\codeql\bin\codeql-win64\codeql\cpp\tools\win64\extractor.exe, args: --mimic "d:\chromium\src\third_party\llvm-build\release+asserts\bin\clang-cl.exe" /c ../../components/autofill/content/browser/content_autofill_router.cc /Foobj/components/autofill/content/browser/browser/content_autofill_router.obj /nologo /showIncludes:user "-imsvcC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\include" "-imsvcC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\ATLMFC\include" "-imsvcC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\VS\include" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-imsvcC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-imsvcC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-imsvcC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-imsvcC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" -DDCHECK_ALWAYS_ON=1 -DUSE_AURA=1 -D_HAS_NODISCARD -D_CRT_NONSTDC_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS -D_LIBCPP_ENABLE_ASSERTIONS=1 "-DCR_CLANG_REVISION=\"llvmorg-17-init-12166-g7586aeab-3\"" -DCOMPONENT_BUILD -DCR_LIBCXX_REVISION=055b2e17ae4f0e2c025ad0c7508b01787df17758 -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_NI -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DLIBYUV_DISABLE_NEON -DWEBP_EXTERN=extern -DUSE_EGL -DVK_USE_PLATFORM_WIN32_KHR -D_WTL_NO_AUTOMATIC_NAMESPACE -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0 -DPROTOBUF_USE_DLLS -DABSL_CONSUME_DLL -DBORINGSSL_SHARED_LIBRARY -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_SHARED_LIBRARY -DSK_ENABLE_SKSL -DSK_UNTIL_CRBUG_1187654_IS_FIXED "-DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\"" -DSK_WIN_FONTMGR_NO_SIMULATIONS -DSK_DISABLE_LEGACY_SKSURFACE_METHODS -DSK_DISABLE_LEGACY_GRAPHITE_IMAGE_FACTORIES -DSK_DISABLE_LEGACY_GRAPHITE_IMAGE_METHODS -DSK_DISABLE_LEGACY_SKSURFACE_FACTORIES -DSK_DISABLE_LEGACY_SKSURFACE_FLUSH -DSK_DISABLE_LEGACY_SKSURFACE_AS_IMAGE -DSK_DISABLE_LEGACY_SKSURFACE_DISPLAYLIST -DSK_CODEC_DECODES_JPEG -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_JPEG -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_HAS_WUFFS_LIBRARY -DSKIA_DLL -DSKCMS_API=__declspec(dllexport) -DGR_GL_FUNCTION_TYPE=__stdcall -DSK_GANESH "-DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\"" -DSK_GL -DSK_VULKAN=1 -DSK_GRAPHITE -DSK_DAWN -DWGPU_SHARED_LIBRARY "-DI18N_ADDRESS_VALIDATION_DATA_URL=\"https://chromium-i18n.appspot.com/ssl-aggregate-address/\"" -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -DWEBRTC_ENABLE_SYMBOL_EXPORT -DWEBRTC_ENABLE_AVX2 -DRTC_ENABLE_WIN_WGC -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_WIN -DABSL_ALLOCATOR_NOTHROW=1 -DLOGGING_INSIDE_WEBRTC -DV8_USE_EXTERNAL_STARTUP_DATA -DUSING_V8_SHARED -DV8_ENABLE_CHECKS -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_SHARED_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_ENABLE_SANDBOX -DV8_DEPRECATION_WARNINGS -DCPPGC_CAGED_HEAP -DCPPGC_YOUNG_GENERATION -DCPPGC_POINTER_COMPRESSION -DCPPGC_SLIM_WRITE_BARRIER -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../third_party/libyuv/include -I../../third_party/jsoncpp/source/include -Igen/third_party/dawn/include -I../../third_party/dawn/include -I../../third_party/libwebp/src/src -Igen/third_party/private_membership/src -Igen/third_party/shell-encryption/src -Igen/components/pol[E 20:53:09 20676] Warning[extractor-c++]: In index_template: [2001c5d5868] Unexpected template kind 9.
icy/proto -I../../third_party/khronos -I../../gpu -I../../third_party/vulkan-deps/vulkan-headers/src/include -I../../third_party/wtl/include -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/abseil-cpp -I../../third_party/boringssl/src/include -I../../third_party/ipcz/include -I../../third_party/ced/src -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/leveldatabase -I../../third_party/leveldatabase/src -I../../third_party/leveldatabase/src/include -I../../net/third_party/quiche/overrides -I../../net/third_party/quiche/src/quiche/common/platform/default -I../../net/third_party/quiche/src -Igen/net/third_party/quiche/src -I../../third_party/skia -Igen/third_party/skia -I../../third_party/wuffs/src/release/c -I../../third_party/vulkan/include -I../../third_party/libaddressinput/src/cpp/include -I../../third_party/crashpad/crashpad -I../../third_party/crashpad/crashpad/compat/win -I../../third_party/zlib -I../../third_party/webrtc_overrides -I../../third_party/webrtc -Igen/third_party/webrtc -I../../third_party/libwebm/source -I../../third_party/mesa_headers -I../../third_party/libaom/source/libaom -I../../v8/include -Igen/v8/include /W4 -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety /WX -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-nonportable-include-path -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -Wshadow -fno-delete-null-pointer-checks -fno-ident -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 /clang:-ffp-contract=off -fcomplete-member-pointers /Gy /FS /bigobj /utf-8 /Zc:twoPhase -ffile-reproducible /Zc:sizedDealloc- /D__WRL_ENABLE_FUNCTION_STATICS__ -fmsc-version=1934 /Zc:dllexportInlines- -m64 -msse3 /Brepro -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -ftrivial-auto-var-init=pattern /Od /Ob0 /GF /Z7 -gno-codeview-command-line -gcodeview-ghash -Xclang -fuse-ctor-homing /guard:cf,nochecks /MDd -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ref-template-as-trivial-member -Xclang -plugin-arg-find-bad-constructs -Xclang check-stack-allocated -Xclang -plugin-arg-find-bad-constructs -Xclang check-raw-ptr-fields -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ptr-exclude-path=testing/platform_test.h -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ptr-exclude-path=sandbox/mac/ -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ptr-exclude-path=chrome/browser/ui/cocoa/touchbar/browser_window_default_touch_bar.mm -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ptr-exclude-path=device/bluetooth/test/mock_bluetooth_central_manager_mac.mm -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ptr-exclude-path=device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ptr-exclude-path=ui/views/controls/native/native_view_host_mac_unittest.mm -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ptr-exclude-path=ui/views/widget/native_widget_mac_unittest.mm -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ptr-exclude-path=ui/views/controls/native/native_view_host_mac_unittest.mm -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ptr-exclude-path=um/winnt.h -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-redundant-parens -Wno-null-pointer-subtraction -DPROTOBUF_ALLOW_DEPRECATED=1 -Wno-redundant-parens -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare /std:c++20 -Wno-trigraphs /TP /GR- -I../../buildtools/third_party/libc++/trunk/include /Fd"obj/components/autofill/content/browser/browser_cc.pdb"
[T 20:53:09 24244] trace_languages(1): [cpp]
[E 20:53:09 20676] Warning[extractor-c++]: In index_template: [2001c45a540] Unexpected template kind 9.
[E 20:53:09 20676] Warning[extractor-c++]: In index_template: [2001c459970] Unexpected template kind 9.
[E 20:53:09 11572] Already archived D:\codeql\autofill_0617\src/D_/chromium/src/third_party/protobuf/src/google/protobuf/port_undef.inc
[E 20:53:09 26764] Already archived D:\codeql\autofill_0617\src/D_/chromium/src/third_party/protobuf/src/google/protobuf/stubs/stl_util.h
[E 20:53:09 26764] Already archived D:\codeql\autofill_0617\src/D_/chromium/src/third_party/protobuf/src/google/protobuf/port_def.inc
[E 20:53:09 11572] Already archived D:\codeql\autofill_0617\src/D_/chromium/src/third_party/protobuf/src/google/protobuf/generated_message_util.h
[E 20:53:09 11572] Already archived D:\codeql\autofill_0617\src/C_/Program Files (x86)/Windows Kits/10/Include/10.0.22621.0/ucrt/assert.h
[E 20:53:09 12776] Already archived D:\codeql\autofill_0617\src/D_/chromium/src/buildtools/third_party/libc++/trunk/include/__iterator/counted_iterator.h
[E 20:53:09 11572] Already archived D:\codeql\autofill_0617\src/D_/chromium/src/third_party/protobuf/src/google/protobuf/stubs/once.h
[E 20:53:09 11572] Already archived D:\codeql\autofill_0617\src/D_/chromium/src/third_party/protobuf/src/google/protobuf/port_def.inc
[E 20:53:09 12776] Already archived D:\codeql\autofill_0617\src/D_/chromium/src/buildtools/third_party/libc++/trunk/include/__concepts/common_with.h
[E 20:53:09 11572] Already archived D:\codeql\autofill_0617\src/D_/chromium/src/third_party/protobuf/src/google/protobuf/port_undef.inc
[E 20:53:09 11572] Already archived D:\codeql\autofill_0617\src/D_/chromium/src/third_party/protobuf/src/google/protobuf/any.h
[E 20:53:09 11572] Already archived D:\codeql\autofill_0617\src/D_/chromium/src/third_party/protobuf/src/google/protobuf/message_lite.h
[E 20:53:09 11572] Already archived D:\codeql\autofill_0617\src/D_/chromium/src/third_party/protobuf/src/google/protobuf/metadata_lite.h
[E 20:53:09 11572] Already archived D:\codeql\autofill_0617\src/D_/chromium/src/third_party/protobuf/src/google/protobuf/port_def.inc
[E 20:53:09 12776] Already archived D:\codeql\autofill_0617\src/D_/chromium/src/buildtools/third_party/libc++/trunk/include/__iterator/front_insert_iterator.h
"../../third_party/protobuf/src/google/protobuf/arena.h", line 486: error: no instance of overloaded "operator new" matches the argument list
argument types are: (unsigned int, void *)
return new (ptr) T(static_cast(args)...);
^
detected during:
instantiation of "T *google::protobuf::Arena::InternalHelper::Construct(void *, Args &&...) [with T=autofill::StrikeData, Args=]" at line 659
instantiation of "T *google::protobuf::Arena::DoCreateMessage(Args &&...) [with T=autofill::StrikeData, Args=<>]" at line 584
instantiation of "T *google::protobuf::Arena::CreateMessageInternal(google::protobuf::Arena *) [with T=autofill::StrikeData]" at line 269 of "gen/components/autofill/core/browser/proto/strike_data.pb.cc"

[E 20:53:09 15972] Warning[extractor-c++]: In construct_message: "../../third_party/protobuf/src/google/protobuf/arena.h", line 486: error: no instance of overloaded "operator new" matches the argument list
argument types are: (unsigned int, void *)
return new (ptr) T(static_cast(args)...);
^
detected during:
instantiation of "T *google::protobuf::Arena::InternalHelper::Construct(void *, Args &&...) [with T=autofill::StrikeData, Args=]" at line 659
instantiation of "T *google::protobuf::Arena::DoCreateMessage(Args &&...) [with T=autofill::StrikeData, Args=<>]" at line 584
instantiation of "T *google::protobuf::Arena::CreateMessageInternal(google::protobuf::Arena *) [with T=autofill::StrikeData]" at line 269 of "gen/components/autofill/core/browser/proto/strike_data.pb.cc"

```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.