From 8e3d94c867741319bf75b47266176cf677218641 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Sequoia Date: Mon, 20 Jun 2022 23:32:52 -0700 Subject: Correct fsCreateACReq length Regressed-in: 6972ea08ee5b2ef1cfbdc2fcaf14f06bbd391561 Fixes: https://gitlab.freedesktop.org/xorg/lib/libxfont/-/issues/13 Signed-off-by: Jeremy Huddleston Sequoia --- src/fc/fserve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fc/fserve.c b/src/fc/fserve.c index 94604d7..c676234 100644 --- a/src/fc/fserve.c +++ b/src/fc/fserve.c @@ -2857,7 +2857,7 @@ _fs_client_access (FSFpePtr conn, pointer client, Bool sync) authorizations = padding; authlen = 4; } - crac.length = (sizeof (fsCreateACReq) + authlen) >> 2; + crac.length = (sizeof (fsCreateACReq) + authlen + 3) >> 2; crac.acid = cur->acid; _fs_add_req_log(conn, FS_CreateAC); _fs_write(conn, (char *) &crac, sizeof (fsCreateACReq)); -- cgit v1.2.3