登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
125
Star
0
Fork
11
src-openEuler
/
hiredis
代码
Issues
0
Pull Requests
0
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
【fuzz】hiredis --sanitizer memory Uninitialized bytes in __interceptor_strlen at offset 0 inside [0x7ffc6b0ca370, 1)
已验收
#I6LRN2
缺陷
wangxiaoya
创建于
2023-03-10 16:21
环境信息】 x86 【测试版本】 Name: hiredis Version: 1.0.2 【注意事项】 受影响版本排查(受影响/不受影响) 1、master 2、openEuler-20.03-LTS-SP3 3、openEuler-20.03-LTS-SP1 4、openEuler-20.03-LTS-SP2 5、openEuler-20.03-LTS 6、openEuler-21.03 7、openEuler-20.03-LTS-Next 8、openEuler-21.09 9、openEuler-22.03-LTS 10、openEuler-22.03-LTS-Next 11、openEuler-20.09 12、openEuler-22.03-LTS-SP1 13、openEuler-23.03 一、【测试步骤】 1、编译 python3 infra/helper.py build_fuzzers --sanitizer memory hiredis 2、执行 python3 infra/helper.py run_fuzzer hiredis format_command_fuzzer 【报错信息】 Uninitialized bytes in __interceptor_strlen at offset 0 inside [0x7ffc6b0ca370, 1) ==12==WARNING: MemorySanitizer: use-of-uninitialized-value #0 0x52fb17 in sdscat /src/hiredis/sds.c:394:28 #1 0x530add in sdscatvprintf /src/hiredis/sds.c:535:9 #2 0x520649 in redisvFormatCommand /src/hiredis/hiredis.c:456:34 #3 0x5228cb in redisFormatCommand /src/hiredis/hiredis.c:554:11 #4 0x51e7d8 in LLVMFuzzerTestOneInput /src/hiredis/format_command_fuzzer.c:51:9 #5 0x4583b1 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:556:15 #6 0x457af5 in fuzzer::Fuzzer::RunOne(unsigned char const*, unsigned long, bool, fuzzer::InputInfo*, bool*) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:470:3 #7 0x459bc7 in fuzzer::Fuzzer::MutateAndTestOne() /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:698:19 #8 0x45a645 in fuzzer::Fuzzer::Loop(std::__Fuzzer::vector<fuzzer::SizedFile, fuzzer::fuzzer_allocator<fuzzer::SizedFile> >&) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:832:5 #9 0x44961e in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:826:6 #10 0x471df2 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:19:10 #11 0x7fd27c08a82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) #12 0x41dd28 in _start (/out/format_command_fuzzer+0x41dd28) Uninitialized value was created by an allocation of 'staticbuf' in the stack frame of function 'sdscatvprintf' #0 0x5306d0 in sdscatvprintf /src/hiredis/sds.c:503 SUMMARY: MemorySanitizer: use-of-uninitialized-value /src/hiredis/sds.c:394:28 in sdscat Exiting MS: 5 InsertByte-InsertByte-CrossOver-ChangeByte-ChangeBit-; base unit: 84b38958c642458f7cc9f0f099b795e268275028 0x3d,0x2d,0xa,0x2,0x25,0x2e, =-\x0a\x02%. artifact_prefix='./'; Test unit written to ./crash-777b8c637ff1536e988f7d11a593d34bfa292cf4 Base64: PS0KAiUu 【预期结果】 运行无异常 【实际结果】 运行出现异常 【复现步骤】 python3 infra/helper.py reproduce hiredis format_command_fuzzer ./crash-777b8c637ff1536e988f7d11a593d34bfa292cf4
环境信息】 x86 【测试版本】 Name: hiredis Version: 1.0.2 【注意事项】 受影响版本排查(受影响/不受影响) 1、master 2、openEuler-20.03-LTS-SP3 3、openEuler-20.03-LTS-SP1 4、openEuler-20.03-LTS-SP2 5、openEuler-20.03-LTS 6、openEuler-21.03 7、openEuler-20.03-LTS-Next 8、openEuler-21.09 9、openEuler-22.03-LTS 10、openEuler-22.03-LTS-Next 11、openEuler-20.09 12、openEuler-22.03-LTS-SP1 13、openEuler-23.03 一、【测试步骤】 1、编译 python3 infra/helper.py build_fuzzers --sanitizer memory hiredis 2、执行 python3 infra/helper.py run_fuzzer hiredis format_command_fuzzer 【报错信息】 Uninitialized bytes in __interceptor_strlen at offset 0 inside [0x7ffc6b0ca370, 1) ==12==WARNING: MemorySanitizer: use-of-uninitialized-value #0 0x52fb17 in sdscat /src/hiredis/sds.c:394:28 #1 0x530add in sdscatvprintf /src/hiredis/sds.c:535:9 #2 0x520649 in redisvFormatCommand /src/hiredis/hiredis.c:456:34 #3 0x5228cb in redisFormatCommand /src/hiredis/hiredis.c:554:11 #4 0x51e7d8 in LLVMFuzzerTestOneInput /src/hiredis/format_command_fuzzer.c:51:9 #5 0x4583b1 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:556:15 #6 0x457af5 in fuzzer::Fuzzer::RunOne(unsigned char const*, unsigned long, bool, fuzzer::InputInfo*, bool*) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:470:3 #7 0x459bc7 in fuzzer::Fuzzer::MutateAndTestOne() /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:698:19 #8 0x45a645 in fuzzer::Fuzzer::Loop(std::__Fuzzer::vector<fuzzer::SizedFile, fuzzer::fuzzer_allocator<fuzzer::SizedFile> >&) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:832:5 #9 0x44961e in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:826:6 #10 0x471df2 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:19:10 #11 0x7fd27c08a82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) #12 0x41dd28 in _start (/out/format_command_fuzzer+0x41dd28) Uninitialized value was created by an allocation of 'staticbuf' in the stack frame of function 'sdscatvprintf' #0 0x5306d0 in sdscatvprintf /src/hiredis/sds.c:503 SUMMARY: MemorySanitizer: use-of-uninitialized-value /src/hiredis/sds.c:394:28 in sdscat Exiting MS: 5 InsertByte-InsertByte-CrossOver-ChangeByte-ChangeBit-; base unit: 84b38958c642458f7cc9f0f099b795e268275028 0x3d,0x2d,0xa,0x2,0x25,0x2e, =-\x0a\x02%. artifact_prefix='./'; Test unit written to ./crash-777b8c637ff1536e988f7d11a593d34bfa292cf4 Base64: PS0KAiUu 【预期结果】 运行无异常 【实际结果】 运行出现异常 【复现步骤】 python3 infra/helper.py reproduce hiredis format_command_fuzzer ./crash-777b8c637ff1536e988f7d11a593d34bfa292cf4
附件
crash-777b8c637ff1536e988f7d11a593d34bfa292cf4
(6 Bytes)
下载
wangxiaoya
2023-03-10 16:37
评论 (
1
)
登录
后才可以发表评论
状态
已验收
待办的
已挂起
修复中
已确认
已完成
已验收
已取消
负责人
未设置
caodongxia
caodongxia
负责人
协作者
+负责人
+协作者
标签
未设置
项目
未立项任务
未立项任务
里程碑
openEuler-23.03-round-2
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (31)
标签 (24)
master
openEuler-25.09
openEuler-24.09
openEuler-24.03-LTS-Next
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2
openEuler-24.03-LTS-SP3
openEuler-24.03-LTS
openEuler-25.03
openEuler-23.09
openEuler-22.03-LTS-Next
openEuler-22.03-LTS-SP2
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-23.03
openEuler-22.03-LTS-SP1
openEuler-20.03-LTS-SP1
openEuler-22.03-LTS
openEuler-22.09
Multi-Version_OpenStack-Train_openEuler-22.03-LTS-Next
openEuler-20.03-LTS-SP3
openEuler-20.03-LTS-SP4
openEuler-20.03-LTS-SP2
openEuler-20.03-LTS-Next
Multi-Version_OpenStack-Wallaby_openEuler-22.03-LTS-Next
openEuler-21.09
openEuler-20.03-LTS
openEuler-21.03
openEuler-20.09
openEuler1.0
openEuler1.0-base
openEuler-25.09-release
openEuler-24.03-LTS-SP2-release
openEuler-25.03-release
openEuler-24.03-LTS-SP1-release
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-24.03-LTS-release
openEuler-22.03-LTS-SP3-release
openEuler-23.09-rc5
openEuler-22.03-LTS-SP1-release
openEuler-22.09-release
openEuler-22.09-rc5
openEuler-22.09-20220829
openEuler-22.03-LTS-20220331
openEuler-22.03-LTS-round5
openEuler-22.03-LTS-round3
openEuler-22.03-LTS-round2
openEuler-22.03-LTS-round1
openEuler-20.03-LTS-SP3-release
openEuler-20.03-LTS-SP2-20210624
openEuler-21.03-20210330
openEuler-20.03-LTS-20200606
openEuler-20.09-20200928
openEuler-20.03-LTS-tag
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
1
https://gitee.com/src-openeuler/hiredis.git
git@gitee.com:src-openeuler/hiredis.git
src-openeuler
hiredis
hiredis
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册