Files
ElyOffice/tasks/reviews/C06.3-r10.md
T

4 lines
975 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
FAIL
crates/ely-files/src/key.rs:61 — [P2] r9 的账户查询并发缺陷仍存在:`getpwuid` 返回共享静态存储,随后读取 `pw_dir` 时另一线程可覆盖它。macOS 构建及 89 项测试通过;Linux 隔离副本使用项目锁文件中的同版本依赖,普通账户 `reviewer` 下完整测试首次通过,重复运行现有 `key::tests::the_account_home_holds_under_concurrent_queries` 时第 8 次退出 101,`key/tests.rs:251` 实际目录为 `/root`,期望为 `/home/reviewer`。这会把 `RecoveryKey::load()` 的锁目录切到 `/root/.local/share/ElyOffice`,普通账户随即因权限错误无法加载恢复密钥,阻断加密文档恢复(PRD §18.2)。修复方向:使用调用者独占缓冲区的 `getpwuid_r`,显式处理缓冲区不足、查询失败和账户缺失,并在 Linux 普通账户下验证并发查询回归。r9 的用户名硬编码问题已修复,修改 HOME 的子进程测试在两平台均通过。