diff options
| author | Jenny Guanni Qu <qguanni@gmail.com> | 2026-03-12 14:59:49 +0000 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2026-03-13 15:31:15 +0100 |
| commit | 00050ec08cecfda447e1209b388086d76addda3a (patch) | |
| tree | b9bc282e9ba474aa209eab208c58b3e71e1680a0 /include/uapi/linux/wimax/git@git.tavy.me:linux.git | |
| parent | f62a218a946b19bb59abdd5361da85fa4606b96b (diff) | |
netfilter: xt_time: use unsigned int for monthday bit shift
The monthday field can be up to 31, and shifting a signed integer 1
by 31 positions (1 << 31) is undefined behavior in C, as the result
overflows a 32-bit signed int. Use 1U to ensure well-defined behavior
for all valid monthday values.
Change the weekday shift to 1U as well for consistency.
Fixes: ee4411a1b1e0 ("[NETFILTER]: x_tables: add xt_time match")
Reported-by: Klaudia Kloc <klaudia@vidocsecurity.com>
Reported-by: Dawid Moczadło <dawid@vidocsecurity.com>
Tested-by: Jenny Guanni Qu <qguanni@gmail.com>
Signed-off-by: Jenny Guanni Qu <qguanni@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include/uapi/linux/wimax/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
