Skip to content

Commit 1609420

Browse files
authored
Revert "Disable liblzma (#11762)" (#11815)
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).
1 parent 39f9a78 commit 1609420

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

projects/lzma/Dockerfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
################################################################################
16+
17+
FROM gcr.io/oss-fuzz-base/base-builder
18+
19+
20+
RUN apt-get update && apt-get install -y \
21+
autoconf \
22+
automake \
23+
libtool \
24+
make
25+
26+
RUN git clone \
27+
--depth 1 \
28+
--branch master \
29+
https://github.com/fancycode/lzma-fuzz.git \
30+
lzma-fuzz
31+
32+
WORKDIR lzma-fuzz
33+
34+
COPY build.sh $SRC/

projects/lzma/build.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash -eu
2+
# Copyright 2024 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
################################################################################
17+
18+
# build and install fuzzers
19+
make clean
20+
make -j$(nproc)
21+
make install DEST=$OUT

projects/lzma/project.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
homepage: "https://www.7-zip.org/sdk.html"
2+
main_repo: 'https://github.com/fancycode/lzma-fuzz.git'
3+
language: c++
4+
primary_contact: "[email protected]"
5+
auto_ccs:
6+
7+
sanitizers:
8+
- address
9+
- memory
10+
- undefined
11+
12+
fuzzing_engines:
13+
- afl
14+
- honggfuzz
15+
- libfuzzer
16+

0 commit comments

Comments
 (0)