File xkbcomp-fix-pointer-value-for-FreeStmt.patch of Package libxkbcommon.31860
From c1e5ac16e77a21f87bdf3bc4dea61b037a17dddb Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon, 30 Jul 2018 14:11:46 +1000
Subject: [PATCH] xkbcomp: fix pointer value for FreeStmt
Git-commit: c1e5ac16e77a21f87bdf3bc4dea61b037a17dddb
Patch-mainline: xkbcommon-0.8.1
References: CVE-2018-15857
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
---
src/xkbcomp/ast-build.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xkbcomp/ast-build.c b/src/xkbcomp/ast-build.c
index 9c6ccd4..2de9e61 100644
--- a/src/xkbcomp/ast-build.c
+++ b/src/xkbcomp/ast-build.c
@@ -240,7 +240,7 @@ ExprAppendMultiKeysymList(ExprDef *expr, ExprDef *append)
darray_steal(append->keysym_list.syms, &syms, NULL);
darray_append_items(expr->keysym_list.syms, syms, numEntries);
- FreeStmt((ParseCommon *) &append);
+ FreeStmt((ParseCommon *) append);
return expr;
}
--
2.35.3