Skip to content

Commit

Permalink
infra: msan enable PIC (#11917)
Browse files Browse the repository at this point in the history
Not sure why `LLVM_ENABLE_PIC` needs to be enabled manually. It should
be by default, according to
https://llvm.org/docs/CMake.html#llvm-related-variables

---------

Co-authored-by: MarcoFalke <6399679+MarcoFalke@users.noreply.github.com>
  • Loading branch information
maflcko and maflcko committed May 9, 2024
1 parent 74769fa commit e3ccec7
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion infra/base-images/base-clang/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
################################################################################

# Docker image with head clang installed.
# Docker image with clang installed.

FROM gcr.io/oss-fuzz-base/base-image

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ function cmake_libcxx {
-DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON \
-DLIBCXXABI_ENABLE_SHARED=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_PIC=ON \
-DLLVM_TARGETS_TO_BUILD="$TARGET_TO_BUILD" \
-DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi" \
-DLLVM_BINUTILS_INCDIR="/usr/include/" \
Expand Down
2 changes: 1 addition & 1 deletion projects/brunsli/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ vendor_ccs:
- "twsmith@mozilla.com"
sanitizers:
- address
# - memory ## msan disabled after a clang bump. Please re-enable it, Try to fix any build warnings and build errors, as well as msan runtime warnings and errors. msan failure log: https://oss-fuzz-gcb-logs.storage.googleapis.com/log-f5583c45-faa2-44d4-8b2f-b27e83c25588.txt
- memory
- undefined
architectures:
- x86_64
Expand Down
3 changes: 1 addition & 2 deletions projects/libplist/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
#
################################################################################

# Pinned because of https://github.com/google/oss-fuzz/pull/11887
FROM gcr.io/oss-fuzz-base/base-builder@sha256:b61fe9b3100043f683ca3ef6dc1f940b7da43c011b10ceecbf530f943a0c2d6d
FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config

RUN git clone --depth 1 https://github.com/libimobiledevice/libplist
Expand Down
3 changes: 1 addition & 2 deletions projects/libraw/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
#
################################################################################

# Pinned because of https://github.com/google/oss-fuzz/pull/11887
FROM gcr.io/oss-fuzz-base/base-builder@sha256:b61fe9b3100043f683ca3ef6dc1f940b7da43c011b10ceecbf530f943a0c2d6d
FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config zlib1g-dev
RUN git clone --depth 1 https://github.com/libraw/libraw
WORKDIR libraw
Expand Down
5 changes: 2 additions & 3 deletions projects/libreoffice/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ language: c++
primary_contact: "caolanm@gmail.com"
sanitizers:
- address
#- memory:
# experimental: True
# # - memory ## msan disabled after a clang bump. Please re-enable it, Try to fix any build warnings and build errors, as well as msan runtime warnings and errors. msan failure log: https://oss-fuzz-gcb-logs.storage.googleapis.com/log-712b40fe-c70f-4ece-90a2-150c61afc6f4.txt
- memory:
experimental: True
- undefined
fuzzing_engines:
# see https://github.com/google/oss-fuzz/issues/6233 for missing afl
Expand Down
2 changes: 1 addition & 1 deletion projects/quantlib/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ auto_ccs:
- nathaniel.brough@gmail.com
sanitizers:
- address
# - memory ## msan disabled after a clang bump. Please re-enable it, Try to fix any build warnings and build errors, as well as msan runtime warnings and errors. msan failure log: https://oss-fuzz-gcb-logs.storage.googleapis.com/log-d6a22300-216b-497d-999c-9b12779d05e2.txt
- memory
fuzzing_engines:
- libfuzzer
- honggfuzz
2 changes: 1 addition & 1 deletion projects/spirv-tools/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ auto_ccs:
- "nathangauer@google.com"
sanitizers:
- address
# - memory ## msan disabled after a clang bump. Please re-enable it, Try to fix any build warnings and build errors, as well as msan runtime warnings and errors. msan failure log: https://oss-fuzz-gcb-logs.storage.googleapis.com/log-8e0fc9d7-ba92-4454-94f7-93c4223a30a6.txt
- memory
- undefined
main_repo: 'https://github.com/KhronosGroup/SPIRV-Tools.git'
architectures:
Expand Down
3 changes: 1 addition & 2 deletions projects/wabt/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
#
################################################################################

# Pinned because of https://github.com/google/oss-fuzz/pull/11887
FROM gcr.io/oss-fuzz-base/base-builder@sha256:b61fe9b3100043f683ca3ef6dc1f940b7da43c011b10ceecbf530f943a0c2d6d
FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y cmake libtool make python
RUN git clone --recursive https://github.com/WebAssembly/wabt
WORKDIR wabt
Expand Down

0 comments on commit e3ccec7

Please sign in to comment.