summaryrefslogtreecommitdiff
path: root/lib/fuzzing
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2020-08-26 12:50:00 +1200
committerAndrew Bartlett <abartlet@samba.org>2020-08-26 03:20:45 +0000
commit830c0206453b41bef87bdc9b309b968f5abd6200 (patch)
tree39b5d6a593394ddb2dc16094029ea965fdaf5f8c /lib/fuzzing
parent49f58b2b093b962e2f3e060b1322a4e61be678a1 (diff)
downloadsamba-830c0206453b41bef87bdc9b309b968f5abd6200.tar.gz
oss-fuzz: Ensure a UTF8 locale is set for the samba build
This ensures that LANG=en_US.UTF8 is set, which Samba's build system needs to operate in UTF8 mode. The change to use flex to generate code meant that this difference between GitLab CI and oss-fuzz was exposed. REF: https://github.com/google/oss-fuzz/pull/4366 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Aug 26 03:20:46 UTC 2020 on sn-devel-184
Diffstat (limited to 'lib/fuzzing')
-rwxr-xr-xlib/fuzzing/oss-fuzz/build_samba.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/fuzzing/oss-fuzz/build_samba.sh b/lib/fuzzing/oss-fuzz/build_samba.sh
index f798f8feb6a..333e8c38561 100755
--- a/lib/fuzzing/oss-fuzz/build_samba.sh
+++ b/lib/fuzzing/oss-fuzz/build_samba.sh
@@ -21,6 +21,12 @@ set -e
set -x
set -u
+# It is critical that this script, just as the rest of Samba's GitLab
+# CI docker has LANG set to en_US.utf8 (oss-fuzz fails to set this)
+. /etc/default/locale
+export LANG
+export LC_ALL
+
ADDITIONAL_CFLAGS="$CFLAGS"
export ADDITIONAL_CFLAGS
CFLAGS=""