Block a user
🟡 [M18] reset_vm_hwm 非权限错误被吞导致内存峰值污染无提示
🟡 [M21] get_file_info 与 count_existing_lines 对无尾换行文件计数不一致
🟡 [M19] benchmark report variant 列顺序依赖输入顺序
🔴 [H1] mmap SIGBUS handler 并发安装会写 static mut 导致 UB
🔴 [H3] scroll_during_append 使用过期 PreadReader 导致增长文件 benchmark 失真
🔴 [H4] 大文件生成未使用 BufWriter 导致 benchmark 数据准备极慢
🔴 [H2] can_reset_vm_hwm 查询权限时会重置 VmHWM 污染内存峰值
Bug: --port 模式下 wlr-screencopy 后端 negotiate_format panic
Bug: --port 模式下 wlr-screencopy 后端 negotiate_format panic
修复方案
已通过 commit 46367ef 修复。
问题根因
wlr-screencopy 后端的 negotiate_format() 无条件调用 .expect("output required for MP4 mode"),没有 WebRTC 分支判断。当 --port 模式下 output 为…
Bug: poll_output() 错误被静默吞没,WebRTC 进入僵尸状态 (webrtc.rs:370)
Bug: is_idr_nalu 循环可能在帧末尾漏检 NAL 单元 (webrtc.rs:511)
安全: HTTP 500 响应回显异常详情,信息泄露 (webrtc.rs:213)
改进: discover_video_params 硬编码 mid 值遍历 (webrtc.rs:314)
Bug: poll_rtc 始终返回 Ok(false),断连后资源永久泄漏 (webrtc.rs)
改进: state_portal.rs 中 expect 应改为 bail! (state_portal.rs:165)
Bug: shutdown() 中 tx.send() 阻塞导致潜在死锁 (state_portal.rs)
unsafe: flush() 中缺少 SAFETY 注释 (avhw.rs:757)
Bug: tx.send() 失败被静默忽略,编码器继续无效工作 (avhw.rs)
unsafe: drain_encoder 中使用 from_raw_parts 应添加 SAFETY 注释 (avhw.rs)