From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 (+0000) Subject: proc/version.h: Protect parameter in LINUX_VERSION() macro. X-Git-Tag: v3.3.15~106 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59666e62559e33b16ba9c0f4442019c353c9f2b0;p=procps-ng proc/version.h: Protect parameter in LINUX_VERSION() macro. Just in case (no problematic use case at the moment). --- 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)