mirror of https://github.com/google/oss-fuzz.git
[django] Fixed pyinstaller creation to include neccessary translations. (#7458)
This commit is contained in:
parent
981efa8d32
commit
eeb2d1fbf8
|
@ -30,7 +30,7 @@ for fuzzer in $(find $SRC -name '*_fuzzer.py'); do
|
|||
# over time on the OSS-Fuzz bots, we use pyinstaller to create a standalone
|
||||
# package. Though not necessarily required for reproducing issues, this is
|
||||
# required to keep fuzzers working properly in OSS-Fuzz.
|
||||
pyinstaller --distpath $OUT --onefile --name $fuzzer_package $fuzzer
|
||||
pyinstaller --distpath $OUT --onefile --add-data django/conf/locale/en/LC_MESSAGES:django/conf/locale/en/LC_MESSAGES --name $fuzzer_package $fuzzer
|
||||
|
||||
# Create execution wrapper. Atheris requires that certain libraries are
|
||||
# preloaded, so this is also done here to ensure compatibility and simplify
|
||||
|
@ -45,4 +45,5 @@ this_dir=\$(dirname \"\$0\")
|
|||
ASAN_OPTIONS=\$ASAN_OPTIONS:symbolize=1:external_symbolizer_path=\$this_dir/llvm-symbolizer:detect_leaks=0 \
|
||||
\$this_dir/$fuzzer_package \$@" > $OUT/$fuzzer_basename
|
||||
chmod +x $OUT/$fuzzer_basename
|
||||
done
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue