Skip to content

Commit

Permalink
Revert "Disable liblzma (#11762)" (#11815)
Browse files Browse the repository at this point in the history
This reverts commit ae9dd26.

There is no evidence that the LZMA SDK in 7zip was affected at all - the
issue in xz was a rogue co-maintainer.

I have also fixed the copyright headers, per CI.

--

See also the discussion at
#11805 (comment). I
don't have an association with LZMA SDK, but noticed this when fixing up
xz (for which I do have an association).
  • Loading branch information
thesamesam authored May 6, 2024
1 parent 39f9a78 commit 1609420
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
34 changes: 34 additions & 0 deletions projects/lzma/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################

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


RUN apt-get update && apt-get install -y \
autoconf \
automake \
libtool \
make

RUN git clone \
--depth 1 \
--branch master \
https://github.com/fancycode/lzma-fuzz.git \
lzma-fuzz

WORKDIR lzma-fuzz

COPY build.sh $SRC/
21 changes: 21 additions & 0 deletions projects/lzma/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash -eu
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################

# build and install fuzzers
make clean
make -j$(nproc)
make install DEST=$OUT
16 changes: 16 additions & 0 deletions projects/lzma/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
homepage: "https://www.7-zip.org/sdk.html"
main_repo: 'https://github.com/fancycode/lzma-fuzz.git'
language: c++
primary_contact: "[email protected]"
auto_ccs:
- "[email protected]"
sanitizers:
- address
- memory
- undefined

fuzzing_engines:
- afl
- honggfuzz
- libfuzzer

0 comments on commit 1609420

Please sign in to comment.