From: Daniel Golle Date: Fri, 23 Jul 2021 23:14:57 +0000 (+0100) Subject: blockd: fix length of timeout int passed to ioctl X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=a846c6b98d59b55f1e761ffc5aa75077f6944689;p=project%2Ffstools.git blockd: fix length of timeout int passed to ioctl AUTOFS_IOC_SETTIMEOUT expects a pointer to an 'unsigned long' which will result in out-of-bounds access when passing a pointer to an 'int'. Change type of timeout to 'unsigned long'. Signed-off-by: Daniel Golle --- diff --git a/blockd.c b/blockd.c index edca896..bf15f10 100644 --- a/blockd.c +++ b/blockd.c @@ -574,7 +574,7 @@ struct uloop_timeout autofs_expire_timer = { static int autofs_mount(void) { - int autofs_timeout = AUTOFS_TIMEOUT; + unsigned long autofs_timeout = AUTOFS_TIMEOUT; int kproto_version; int pipefd[2]; char source[64];