-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fa.c:125:27: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' #793
Comments
Line 125 in 4f3bbeb
i reckon instead of |
Following your suggestion, indeed this error can be resolved, thanks |
what about Line 121 in 4f3bbeb
or does that break something? When you find out, can you please submit a pull request? |
Yes, line 121 needs to be modified |
Build 【OSS-fuzz】 environment
1、compile
python infra/helper.py build_fuzzers --sanitizer undefined augeas
2、Check the output file
python infra/helper.py reproduce augeas augeas_fa_fuzzer build/out/augeas/crash-170324fc4f2264fa9dc8fd77e37199008ad3fbaa
error message:
fa.c:125:27: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
#0 0x4c0f64 in bitset_set /src/augeas/src/fa.c:125:27
#1 0x4b2156 in minimize_hopcroft /src/augeas/src/fa.c:1648:25
#2 0x4b04d0 in fa_minimize /src/augeas/src/fa.c:1782:13
#3 0x4b0207 in LLVMFuzzerTestOneInput /src/augeas/augeas_fa_fuzzer.cc:72:3
#4 0x4414d1 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/c
#5 0x42c832 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compil
#6 0x4328c7 in fuzzer::FuzzerDriver(int*, char***, int ()(unsigned char const, unsigned long)) /src/l6:9
#7 0x45af12 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:19:10
#8 0x7f24a4d9682f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#9 0x406e48 in _start (/out/augeas_fa_fuzzer+0x406e48)
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior fa.c:125:27 in
The text was updated successfully, but these errors were encountered: