• Joined on 2026-04-07
dailz commented on issue dailz/wl-webrtc#2 2026-06-06 11:05:22 +08:00
安全: 令牌文件未设置限制性权限 (cap_portal.rs)

修复完成

已在 commit 9a5b09c 中修复,基于 Oracle 安全审计建议实施。

改动摘要

token_path() — 返回 Option<PathBuf>,移…

dailz pushed to master at dailz/wl-webrtc 2026-06-06 11:05:07 +08:00
9a5b09cd7f fix(security): harden token file permissions (closes #2)
46367ef6b5 fix(state): add WebRTC support to wlr-screencopy backend
Compare 2 commits »
dailz closed issue dailz/wl-webrtc#2 2026-06-06 11:05:07 +08:00
安全: 令牌文件未设置限制性权限 (cap_portal.rs)
dailz created pull request dailz/logViewer#46 2026-06-05 17:34:56 +08:00
fix: [M23] 小文件 single_frame_tail 与 head 重叠导致 render 数据误导
dailz pushed to fix/m23-single-frame-tail-overlap at dailz/logViewer 2026-06-05 17:32:24 +08:00
dailz created branch fix/m23-single-frame-tail-overlap in dailz/logViewer 2026-06-05 17:32:24 +08:00
dailz commented on issue dailz/logViewer#41 2026-06-05 17:29:19 +08:00
🟡 [M22] cold startup benchmark 因 clear_file_cache 失败被静默跳过

Fixed in 5024796.

Changes in crates/bench/src/suites/startup.rs:

  1. Top-level gate: if .is_ok() → match, Err branch prints WARNING and skips all cold benchmarks
  2. bench_cold_open(): let _ = →…
dailz pushed to master at dailz/logViewer 2026-06-05 17:29:05 +08:00
502479677b fix(bench): warn when clear_file_cache fails instead of silently skipping cold benchmarks (closes #41)
5656b26d7b refactor(bench): unify line counting in get_file_info to use count_existing_lines
a8b64e78bd fix(bench): stabilize report column/row ordering across input permutations (#39)
Compare 3 commits »
dailz closed issue dailz/logViewer#41 2026-06-05 17:29:05 +08:00
🟡 [M22] cold startup benchmark 因 clear_file_cache 失败被静默跳过
dailz closed issue dailz/logViewer#40 2026-06-05 17:05:36 +08:00
🟡 [M21] get_file_info 与 count_existing_lines 对无尾换行文件计数不一致
dailz commented on issue dailz/logViewer#40 2026-06-05 17:05:29 +08:00
🟡 [M21] get_file_info 与 count_existing_lines 对无尾换行文件计数不一致

经审核,原 issue 描述的不一致实际不存在:read_until(b'\n') 和 lines().count() 对无尾换行文件的行为一致,均会计入最后一行。

但为减少重复代码和维护风险,已将 get_file_info 中的手动 read_until…

dailz closed issue dailz/logViewer#39 2026-06-05 16:25:39 +08:00
🟡 [M19] benchmark report variant 列顺序依赖输入顺序
dailz commented on issue dailz/logViewer#39 2026-06-05 16:25:15 +08:00
🟡 [M19] benchmark report variant 列顺序依赖输入顺序

已修复,提交 a8b64e7。

修改内容:

  1. Latency 表列顺序 — variants 去重改用直接 tuple 比较取代 format! 字符串比较,构建后 sort() 确保稳定字典序
  2. Memory 段行顺序 — 按 (test_name,…
dailz closed issue dailz/logViewer#38 2026-06-05 15:52:31 +08:00
🟡 [M18] reset_vm_hwm 非权限错误被吞导致内存峰值污染无提示
dailz commented on issue dailz/logViewer#38 2026-06-05 15:52:23 +08:00
🟡 [M18] reset_vm_hwm 非权限错误被吞导致内存峰值污染无提示

修复方案

commit e945a35

变更内容

runner.rs

  • 所有 reset_vm_hwm() 错误现在都会输出 warning(不再仅限 PermissionDenied
  • PermissionDenied 保留 "Try running as root" 专属提示 -…
dailz pushed to master at dailz/logViewer 2026-06-05 15:52:08 +08:00
e945a357f7 fix(bench): warn on all reset_vm_hwm errors, not just PermissionDenied
dailz commented on issue dailz/logViewer#37 2026-06-05 15:21:54 +08:00
🟡 [M17] bench --suites 拼写错误会静默运行 0 个套件

修复方案

按照 Oracle 推荐的类型驱动方案实施:引入 Suite 枚举替代字符串匹配。

改动

runner.rs

  • 新增 Suite 枚举,覆盖全部 7 个合法 suite
  • FromStr 实现:无效名称返回错误信息并列出全部合…
dailz closed issue dailz/logViewer#37 2026-06-05 15:20:34 +08:00
🟡 [M17] bench --suites 拼写错误会静默运行 0 个套件
dailz pushed to master at dailz/logViewer 2026-06-05 15:20:34 +08:00
fb57584546 fix(bench): validate --suites names, reject unknown suites at CLI boundary
dailz commented on issue dailz/logViewer#36 2026-06-05 14:58:23 +08:00
🔴 [H3] scroll_during_append 使用过期 PreadReader 导致增长文件 benchmark 失真

修复方案

根因: PreadReaderCoreopen_raw 时一次性构建 LineIndexfile_sizetotal_lines 之后永不更新。get_line_implidx >= total_lines 直接返回 None,导致 benchmark…