123 Star 0 Fork 13

src-openEuler / opusfile

 / 详情

Abort in op_pcm_seek_page

已完成
缺陷
创建于  
2021-11-23 17:00
Fatal (internal) error in src/opusfile.c, line 2358: assertion failed: !op_granpos_add(&prev_page_gp,_of->op[0].granulepos, -op_get_packet_duration(_of->op[0].packet,_of->op[0].bytes))
==2717757== ERROR: libFuzzer: deadly signal
    #0 0x52b341 in __sanitizer_print_stack_trace /src/llvm-project/compiler-rt/lib/asan/asan_stack.cpp:86:3
    #1 0x475d68 in fuzzer::PrintStackTrace() /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerUtil.cpp:210:5
    #2 0x45a443 in fuzzer::Fuzzer::CrashCallback() /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:233:3
    #3 0x7fd048ed94bf  (/lib64/libpthread.so.0+0x134bf)
    #4 0x7fd048d1c60a in raise (/lib64/libc.so.6+0x3960a)
    #5 0x7fd048d1d930 in abort (/lib64/libc.so.6+0x3a930)
    #6 0x55b7ba in op_fatal_impl /src/opusfile/src/internal.c:22:3
    #7 0x563ccd in op_pcm_seek_page /src/opusfile/src/opusfile.c:2357:13
    #8 0x5617a8 in op_pcm_seek /src/opusfile/src/opusfile.c:2624:7
    #9 0x555f4d in LLVMFuzzerTestOneInput /src/opusfile_fuzzer.c:99:11
    #10 0x45bbe3 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:599:15
    #11 0x447352 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:323:6
    #12 0x44cff6 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:856:9
    #13 0x476502 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10
    #14 0x7fd048d08b26 in __libc_start_main (/lib64/libc.so.6+0x25b26)
    #15 0x423209 in _start (/root/oss-fuzz/build/out/opusfile/opusfile_fuzzer+0x423209)

评论 (2)

fusiontest 创建了缺陷
fusiontest 上传了附件fusiontest-testcase-opusfile_fuzzer-202111200001
openeuler-ci-bot 添加了
 
sig/Others
标签
展开全部操作日志

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.

使用社区补丁修复该问题。
链接: https://github.com/xiph/opusfile/commit/4174c26e0aaab19d01afdea0a46f7f95fdc6b3e6

合入后,本地验证,用例通过。
输入图片说明

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/opusfile.git
git@gitee.com:src-openeuler/opusfile.git
src-openeuler
opusfile
opusfile

搜索帮助