From 59666e62559e33b16ba9c0f4442019c353c9f2b0 Mon Sep 17 00:00:00 2001 From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] proc/version.h: Protect parameter in LINUX_VERSION() macro. Just in case (no problematic use case at the moment). --- proc/version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc/version.h b/proc/version.h index e4dcef46..5392b6c3 100644 --- a/proc/version.h +++ b/proc/version.h @@ -30,7 +30,7 @@ extern "C" { int procps_linux_version(void); /* Convenience macros for composing/decomposing version codes */ -#define LINUX_VERSION(x,y,z) (0x10000*(x) + 0x100*(y) + z) +#define LINUX_VERSION(x,y,z) (0x10000*(x) + 0x100*(y) + (z)) #define LINUX_VERSION_MAJOR(x) (((x)>>16) & 0xFF) #define LINUX_VERSION_MINOR(x) (((x)>> 8) & 0xFF) #define LINUX_VERSION_PATCH(x) ( (x) & 0xFF)