Home
last modified time | relevance | path

Searched +full:- +full:fsanitize (Results 1 – 21 of 21) sorted by relevance

/openbmc/phosphor-mboxd/
H A Dbootstrap.sh3 set -eu
5 AUTOCONF_FILES="Makefile.in aclocal.m4 ar-lib autom4te.cache compile \
6 config.guess config.h.in config.sub configure depcomp install-sh \
7 ltmain.sh missing *libtool test-driver"
11 if [ $# -gt 0 ];
19 AX_CODE_COVERAGE_PATH="$(aclocal --print-ac-dir)"/ax_code_coverage.m4
20 if [ ! -e ${AX_CODE_COVERAGE_PATH} ];
25 LCOV_VERSION=$(lcov --version | tr ' ' '\n' | tail -1)
27 # Ubuntu Zesty ships with lcov v1.13, but Zesty's autoconf-archive
31 # sed-patch ax_code_coverage.m4 as it's GPLv3, and this is an Apache v2
[all …]
/openbmc/hiomapd/
H A Dbootstrap.sh3 set -eu
5 AUTOCONF_FILES="Makefile.in aclocal.m4 ar-lib autom4te.cache compile \
6 config.guess config.h.in config.sub configure depcomp install-sh \
7 ltmain.sh missing *libtool test-driver"
11 if [ $# -gt 0 ];
19 AX_CODE_COVERAGE_PATH="$(aclocal --print-ac-dir)"/ax_code_coverage.m4
20 if [ ! -e "${AX_CODE_COVERAGE_PATH}" ];
25 LCOV_VERSION=$(lcov --version | tr ' ' '\n' | tail -1)
27 # Ubuntu Zesty ships with lcov v1.13, but Zesty's autoconf-archive
31 # sed-patch ax_code_coverage.m4 as it's GPLv3, and this is an Apache v2
[all …]
/openbmc/witherspoon-pfault-analysis/
H A Delog-errors.hpp2 // See elog-gen.py for more details
5 #include <phosphor-logging/elog.hpp>
6 #include <phosphor-logging/log.hpp>
162 * We can't use -fsanitize=undefined if we declare a
163 * 'static constexpr auto str' member, so don't. Instead, open-code the
174 * We can't use -fsanitize=undefined if we declare a
175 * 'static constexpr auto str' member, so don't. Instead, open-code the
188 * We can't use -fsanitize=undefined if we declare a
189 * 'static constexpr auto str' member, so don't. Instead, open-code the
239 * We can't use -fsanitize=undefined if we declare a
[all …]
/openbmc/openpower-host-ipmi-oem/
H A Delog-errors.hpp2 // See elog-gen.py for more details
5 #include <phosphor-logging/elog.hpp>
6 #include <phosphor-logging/log.hpp>
60 * We can't use -fsanitize=undefined if we declare a
61 * 'static constexpr auto str' member, so don't. Instead, open-code the
105 * We can't use -fsanitize=undefined if we declare a
106 * 'static constexpr auto str' member, so don't. Instead, open-code the
152 * We can't use -fsanitize=undefined if we declare a
153 * 'static constexpr auto str' member, so don't. Instead, open-code the
166 * We can't use -fsanitize=undefined if we declare a
[all …]
/openbmc/qemu/tests/tsan/
H A Dignore.tsan3 # "--extra-cflags=-fsanitize-blacklist=<src path>/tests/tsan/ignore.tsan"
/openbmc/phosphor-power/
H A Delog-errors.hpp2 // See elog-gen.py for more details
5 #include <phosphor-logging/elog.hpp>
1456 * We can't use -fsanitize=undefined if we declare a
1457 * 'static constexpr auto str' member, so don't. Instead, open-code the
1468 * We can't use -fsanitize=undefined if we declare a
1469 * 'static constexpr auto str' member, so don't. Instead, open-code the
1482 * We can't use -fsanitize=undefined if we declare a
1483 * 'static constexpr auto str' member, so don't. Instead, open-code the
1533 * We can't use -fsanitize=undefined if we declare a
1534 * 'static constexpr auto str' member, so don't. Instead, open-code the
[all …]
/openbmc/qemu/tests/docker/
H A Dtest-clang1 #!/bin/bash -e
12 # the top-level directory.
20 OPTS="--cxx=clang++ --cc=clang --host-cc=clang"
21 OPTS="$OPTS --extra-cflags=-fsanitize=undefined \
22 --extra-cflags=-fno-sanitize=float-divide-by-zero"
H A Dtest-fuzz1 #!/bin/bash -e
3 # Compile and check with oss-fuzz.
10 # SPDX-License-Identifier: GPL-2.0-or-later
18 cp -a $QEMU_SRC .
20 mkdir build-oss-fuzz
21 export LSAN_OPTIONS=suppressions=scripts/oss-fuzz/lsan_suppressions.txt
22 env CC="clang" CXX="clang++" CFLAGS="-fsanitize=address" ./scripts/oss-fuzz/build.sh
24 for fuzzer in $(find ./build-oss-fuzz/DEST_DIR/ -executable -type f | grep -v slirp); do
27 "${fuzzer}" -runs=1 -seed=1 || exit 1 ;
/openbmc/libmctp/
H A Dbootstrap.sh3 set -eu
5 autoreconf -f -i
9 if [ $# -gt 0 ];
17 FLAGS="-O2 -Wall -Wextra -Wformat-security"
18 FLAGS="${FLAGS} -Wparentheses"
19 FLAGS="${FLAGS} -Wno-type-limits"
20 FLAGS="${FLAGS} -Werror"
21 # FLAGS="${FLAGS} -Wpedantic"
22 FLAGS="${FLAGS} -fsanitize=address,leak,undefined"
23 FLAGS="${FLAGS} -ggdb"
[all …]
H A DCMakeLists.txt8 -Werror \
9 -Wall \
10 -Wextra \
11 -Wnull-dereference \
12 -Wformat-security \
13 -Wno-type-limits \
14 -fsanitize=address,leak,undefined \
15 -ggdb \
20 add_definitions (-DMCTP_LOG_STDERR)
21 add_definitions (-DMCTP_HAVE_FILEIO)
[all …]
/openbmc/libcper/tests/
H A Dmeson.build6 test_sources = files('base64_test.c', 'test-utils.c')
11 'cper-tests',
12 'ir-tests.c',
23 test('test-cper-tests', cper_tests)
32 '-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION',
33 '-fsanitize=fuzzer,address,leak',
39 …[fuzzer_test + '.c'] + libcper_parse_sources + edk_sources + 'test-utils.c' + libcper_generate_sou…
50 '-max_total_time=10',
51 '-max_len=131072',
52 '-error_exitcode=1',
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A Dmeson.build6 if cflag.startswith('-fsanitize') and \
7 not cflag.contains('safe-stack') and not cflag.contains('cfi-icall')
8 message('Sanitizers are enabled ==> Disabled the qemu-iotests.')
15 message('bash >= v4.0 not available ==> Disabled the qemu-iotests.')
30 if k.startswith('qemu-system-')
41 suites = ['block-' + speed, speed]
44 args = ['-tap', '-' + format]
46 args += ['-g', 'auto']
50 [python, qemu_iotests_check_cmd] + args + ['-n'],
56 '-tap', '-' + format, item,
[all …]
/openbmc/qemu/
H A Dmeson.build15 meson.add_postconf_script(find_program('scripts/symlink-install-tree.py'))
28 config_host = keyval.load(meson.current_build_dir() / 'config-host.mak')
35 tmpdir = meson.current_build_dir() / 'meson-private/temp'
66 have_linux_user = have_linux_user or target.endswith('linux-user')
67 have_bsd_user = have_bsd_user or target.endswith('bsd-user')
68 have_system = have_system or target.endswith('-softmmu')
113 …dgen.version() + ' is unsupported. You can install a new version with "cargo install bindgen-cli"')
120 message('To use Rust you can install a new version with "cargo install bindgen-cli"')
128 '--rustc-version', rustc.version(),
129 '--workspace', meson.project_source_root() / 'rust']
[all …]
/openbmc/openbmc/poky/meta/recipes-extended/iputils/iputils/
H A DCVE-2025-47268.patch4 Subject: [PATCH] ping: Fix signed 64-bit integer overflow in RTT calculation
9 triptime = tv->tv_sec * 1000000 + tv->tv_usec;
12 rts->tsum2 += (double)((long long)triptime * (long long)triptime);
15 tmvar = (rts->tsum2 / total) - (tmavg * tmavg)
17 $ export CFLAGS="-O1 -g -fsanitize=address,undefined -fno-omit-frame-pointer"
18 $ export LDFLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer"
19 $ meson setup .. -Db_sanitize=address,undefined
21 $ ./ping/ping -c2 127.0.0.1
25 …../ping/ping_common.c:757:25: runtime error: signed integer overflow: -2513732689199106 * 1000000 …
26 …../ping/ping_common.c:757:12: runtime error: signed integer overflow: -4975495174606980224 + -6510…
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/beep/files/
H A D0001-beep-library-Make-it-compatible-with-c99.patch3 Date: Mon, 13 Nov 2023 17:18:55 -0800
4 Subject: [PATCH] beep-library: Make it compatible with < c99
6 Upstream-Status: Pending
7 Signed-off-by: Khem Raj <raj.khem@gmail.com>
8 ---
9 beep-library.c | 9 +++++----
10 1 file changed, 5 insertions(+), 4 deletions(-)
12 --- a/beep-library.c
13 +++ b/beep-library.c
14 @@ -44,7 +44,7 @@
[all …]
/openbmc/phosphor-logging/tools/phosphor-logging/templates/
H A Delog-gen-template.hpp.mako2 ## elog-gen.hpp file
4 // See elog-gen.py for more details
7 #include <phosphor-logging/elog.hpp>
8 #include <phosphor-logging/log.hpp>
23 classname = inflection.camelize(names[-1])
24 namespace_name = "::".join([inflection.underscore(x) for x in names[:-1]])
36 return ("::".join(names[:-1]), names[-1])
68 * We can't use -fsanitize=undefined if we declare a
69 * 'static constexpr auto str' member, so don't. Instead, open-code the
121 using ${b.split("::")[-1]} =
/openbmc/qemu/scripts/oss-fuzz/
H A Dbuild.sh1 #!/bin/bash -e
3 # OSS-Fuzz build script. See:
4 # https://google.github.io/oss-fuzz/getting-started/new-project-guide/#buildsh
7 # https://github.com/google/oss-fuzz/blob/master/projects/qemu/Dockerfiles
10 # the COPYING file in the top-level directory.
17 # make -j$(nproc) all
21 # $CXX $CXXFLAGS -std=c++11 -Iinclude \
22 # /path/to/name_of_fuzzer.cc -o $OUT/name_of_fuzzer \
23 # -fsanitize=fuzzer /path/to/library.a
30 OSS_FUZZ_BUILD_DIR="./build-oss-fuzz/"
[all …]
/openbmc/qemu/docs/devel/testing/
H A Dmain.rst7 everything from unit testing and exercising specific sub-systems all
9 tests you can run ``make check-help`` from either the source or build
16 [./pyvenv/bin/]meson test --suite qemu:softfloat
38 -------------------------
49 Different sub-types of "make check" tests will be explained below.
55 .. _unit-tests:
68 In QEMU, unit tests can be invoked with ``make check-unit``. They are
76 1. Create a new source file. For example, ``tests/unit/foo-test.c``.
86 is in ``tests/unit/foo-test.c``, it is enough to add an entry like::
90 'foo-test': [],
[all …]
/openbmc/openbmc-build-scripts/scripts/
H A Dunit-test.py189 if path[-1] == name:
199 from_name = path[-1]
204 Return post-order list of node names.
217 Print pre-order node names with indentation denoting node depth level.
276 cmd = ["make", "-n", target]
287 "-j",
290 "-l",
293 "-O",
309 check_call_cmd("sudo", "-n", "--", "ldconfig")
387 "-j",
[all …]
/openbmc/qemu/.gitlab-ci.d/
H A Dbuildtest.yml2 - local: '/.gitlab-ci.d/buildtest-template.yml'
4 build-system-alpine:
6 - .native_build_job_template
7 - .native_build_artifact_template
9 - job: amd64-alpine-container
12 TARGETS: avr-softmmu loongarch64-softmmu mips64-softmmu mipsel-softmmu
13 MAKE_CHECK_ARGS: check-build
14 CONFIGURE_ARGS: --enable-docs --enable-trace-backends=log,simple,syslog
16 check-system-alpine:
19 - job: build-system-alpine
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/binutils/binutils/
H A D0008-Use-libtool-2.4.patch8 Upstream-Status: Pending
10 Signed-off-by: Khem Raj <raj.khem@gmail.com>
11 ---
13 bfd/configure | 1333 ++++++++----
14 bfd/configure.ac | 2 +-
16 binutils/configure | 1331 ++++++++----
18 gas/configure | 1331 ++++++++----
20 gprof/configure | 1331 ++++++++----
22 gprofng/configure | 1693 ++++++++++++----
24 gprofng/gp-display-html/Makefile.in | 2 +
[all …]