From 9873d68bf1f93b424f920a8c095e3d3ee7d3fdf5 Mon Sep 17 00:00:00 2001 From: Sergiusz Michalik Date: Wed, 20 Jun 2018 19:34:28 +0200 Subject: [PATCH] zalloc limit fix for libinput-record --- src/libinput-util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libinput-util.h b/src/libinput-util.h index 4f60e8ea..720f388b 100644 --- a/src/libinput-util.h +++ b/src/libinput-util.h @@ -142,9 +142,9 @@ zalloc(size_t size) { void *p; - /* We never need to alloc anything even near one MB so we can assume + /* We never need to alloc anything more than 1,5 MB so we can assume * if we ever get above that something's going wrong */ - if (size > 1024 * 1024) + if (size > 1536 * 1024) abort(); p = calloc(1, size);