Incorrect sizeof() in Rustls Backend Memory Allocation
内存破坏 / Incorrect Calculation of Buffer Size / #3427460
该报告还没有中文解读。
原文摘录
摘自原文(1922 字符中的一小部分)
There's a bug in `lib/vtls/rustls.c` where `malloc()` uses `sizeof(cipher_suites)` instead of `sizeof(*cipher_suites)`. This allocates memory based on pointer size rather than element size.
原文中的代码
const struct rustls_supported_ciphersuite **cipher_suites = NULL;
默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @pelioro · 版权归作者与 curl 所有