google / google/oss-fuzz

Rust Honggfuzz build issue

Open
#8,804 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
12.6k
Forks
2.9k
Avg merge
2d 3h
Merged PRs (30d)
61

Description

Trying to integrate polkadot. Using the gcr.io/oss-fuzz-base/base-builder-rust(https://github.com/google/oss-fuzz/pull/8798) the builds fails.

whereas building locally with a simple dockerfile, the build passes. Are the automated pre-building scripts affecting the untouched ubuntu images, affecting the build? Can I use other docker images rather than oss-fuzz-base docker images? or can I review the dockerfile of oss-fuzz-base images for rust?
My Dockerfile:
`FROM ubuntu:20.04 as builder

## Install build dependencies.
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y cmake clang curl binutils-dev libunwind8-dev
RUN curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN ${HOME}/.cargo/bin/rustup default nightly
RUN ${HOME}/.cargo/bin/cargo install honggfuzz --version 0.5.55

## Add source code to the build stage.
ADD . /polkadot
WORKDIR /polkadot
RUN cd xcm/xcm-simulator/fuzzer && \
${HOME}/.cargo/bin/cargo hfuzz build
RUN cd erasure-coding/fuzzer && \
${HOME}/.cargo/bin/cargo hfuzz build`
There is also a possibility to build with my dockerfile and package it with oss-fuzz-base image?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.