diff options
| author | 2026-08-28 08:34:10 +0800 | |
|---|---|---|
| committer | 2026-08-28 10:28:04 -0700 | |
| commit | cd35e1b10182c42b4ae31ee49119463b17d8ba7f (patch) | |
| tree | f3414d087af2ebcc7af8855c0c20afc61b259771 /scripts/Makefile.thinlto | |
| parent | selftests/bpf: Avoid flaky resize value test for percpu data (diff) | |
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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
