aboutsummaryrefslogtreecommitdiff
path: root/projects/libwebp
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2018-06-01 06:43:45 -0700
committerjonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2018-06-01 06:43:45 -0700
commit02c00845e5db3a87c4c00f23225fde7202713a6d (patch)
tree52bda914be7280aa55ff5e779c635f8ef0475dd7 /projects/libwebp
parentdaa30b7620c176c19ac0f5387f36403e74335781 (diff)
downloadoss-fuzz-02c00845e5db3a87c4c00f23225fde7202713a6d.tar.gz
[libwebp] Set max image size to reduce OOMs (#1471)
Set max image size to 800MiB
Diffstat (limited to 'projects/libwebp')
-rw-r--r--projects/libwebp/build.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/projects/libwebp/build.sh b/projects/libwebp/build.sh
index 5a4ee8619..abbd4b234 100644
--- a/projects/libwebp/build.sh
+++ b/projects/libwebp/build.sh
@@ -15,6 +15,9 @@
#
################################################################################
+# limit allocation size to reduce spurious OOMs
+CFLAGS+=" -DWEBP_MAX_IMAGE_SIZE=838860800" # 800MiB
+
./autogen.sh
./configure \
--enable-libwebpdemux \