代码拉取完成,页面将自动刷新
src/opusfile.c:1024:12: runtime error: left shift of negative value -1
#0 0x4c1084 in op_rescale64 /src/opusfile/src/opusfile.c:1024:12
#1 0x4b9195 in op_pcm_seek_page /src/opusfile/src/opusfile.c:2408:22
#2 0x4b833b in op_pcm_seek /src/opusfile/src/opusfile.c:2624:7
#3 0x4afc1f in LLVMFuzzerTestOneInput /src/opusfile_fuzzer.c:99:11
#4 0x440ff3 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:599:15
#5 0x42c762 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:323:6
#6 0x432406 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:856:9
#7 0x45b912 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10
#8 0x7fed90b9cb26 in __libc_start_main (/lib64/libc.so.6+0x25b26)
#9 0x408619 in _start (/root/oss-fuzz/build/out/opusfile/opusfile_fuzzer+0x408619)
Hi fusiontest, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at
https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md.
If you have any questions, please contact the SIG: Others, and any of the maintainers: @jimmy_hero, @small_leek.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
原因分析:左移运算中要求左值类型转换为unsigned int,/src/opusfile.c第1024行参与左移运算的_x值类型为opus_int64,即为long long类型,并非unsigned int类型
修复方案:是在左移前将运算数_x强制类型转换为unsigned long long类型,即opus_uint64,左移运算完再将_x转化为自己本身的类型opus_int64
验证结果:
登录 后才可以发表评论