diff options
| author | Tw <tw19881113@gmail.com> | 2026-08-28 08:34:10 +0800 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2026-08-28 10:28:04 -0700 |
| commit | cd35e1b10182c42b4ae31ee49119463b17d8ba7f (patch) | |
| tree | f3414d087af2ebcc7af8855c0c20afc61b259771 /tools/lib/python/kdoc/python_version.py | |
| parent | 5e875ae9e9ffd5c76c6bdf8982f99de340dd46af (diff) | |
| download | linux-next-cd35e1b10182c42b4ae31ee49119463b17d8ba7f.tar.gz linux-next-cd35e1b10182c42b4ae31ee49119463b17d8ba7f.zip | |
libbpf: Fix for the potential undefined behavior due to shifting
When compiling libbpf with sanitation, ubsan will report the following:
```
left shift of 1 by 31 places cannot be represented in type 'int'
```
This may lead to undefined behavior according to the compiler implementation,
let's fix it by casting to unsigned counterpart before shifting.
Signed-off-by: Tan Wei <tw19881113@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20260828003448.1684064-1-tw19881113@gmail.com
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
