mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-28 22:30:07 +01:00
zalloc limit fix for libinput-record
This commit is contained in:
parent
ca76511411
commit
9873d68bf1
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue