Delaying error handlers
还没有人认领这个 Issue。
- 主要语言
- C
- 星标
- 40.4k
- 派生
- 8.1k
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 96
描述
Description
Due to error handlers, some operations may have unsuspected effects. This is the cause of bugs and workarounds. Quoting GH-6903:
[...] long-standing source of interrupt
vulnerabilities: A notice is emitted during execution of an opcode,
resulting in an error handling being run. The error handler modifies
some data structure the opcode is working on, resulting in UAF or
other memory corruption.
These bugs and workarounds could be avoided by delaying error handlers until a safepoint. Existing/Previous work:
- https://github.com/php/php-src/pull/6903
- https://github.com/php/php-src/pull/7735
- https://github.com/php/php-src/pull/12090
- https://github.com/php/php-src/pull/12805
I'm creating this ticket to aggregate issues that would not exist with delayed error handlers:
- https://github.com/php/php-src/issues/13754
- https://github.com/php/php-src/issues/15907
- https://github.com/php/php-src/issues/16726
- https://github.com/php/php-src/issues/17416
- https://github.com/php/php-src/issues/18043
- https://github.com/php/php-src/issues/18274
- https://github.com/php/php-src/issues/20042
- https://github.com/php/php-src/issues/20482
- https://github.com/php/php-src/issues/20855
- https://github.com/php/php-src/issues/21024
- https://github.com/php/php-src/issues/21245
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先查看之前的 pull request 6903、7735、12090 和 12805,然后检查此处汇总的相关 issue。当错误处理程序延迟到 safepoint,使列出的中断相关 bug 和 workaround 不再适用时,这项工作就完成了。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- c, php
- 领域
- compilers
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100