• Joined on 2026-04-07
dailz closed issue dailz/logViewer#4 2026-06-04 13:15:22 +08:00
🔴 [H4] 缓存指纹太弱 → 中间修改检测不到
dailz commented on issue dailz/logViewer#4 2026-06-04 13:15:15 +08:00
🔴 [H4] 缓存指纹太弱 → 中间修改检测不到

审核结论:关闭(风险极低)

技术缺陷确认属实compute_file_hashcore/io/index_cache.rs:63)确实只采样 head 4KB + tail 4KB + file_size,中间区域不参与指纹计算。

但实际风险极低: -…

dailz pushed to master at dailz/logViewer 2026-06-03 15:39:12 +08:00
bef0b44e91 fix(io): guard sampled_offsets index in get_line() to prevent panic on corrupt cache
dailz closed issue dailz/logViewer#3 2026-06-03 15:39:12 +08:00
🔴 [H3] 缓存损坏时 get_line() 会 panic
dailz commented on issue dailz/logViewer#2 2026-06-03 15:12:30 +08:00
🔴 [H2] mmap 与索引构建之间存在 TOCTOU 竞态

修复方案

根因: FileReader::open()reload() 中,mmap 映射(快照 A)和 LineIndex::from_reader(BufReader) (快照 B)是两个独立的文件读取操作。如果文件在两步之间被外部修改,索引偏移量…

dailz pushed to master at dailz/logViewer 2026-06-03 15:08:36 +08:00
24fe97a457 fix(io): eliminate TOCTOU race in FileReader open/reload
dailz closed issue dailz/logViewer#2 2026-06-03 15:08:36 +08:00
🔴 [H2] mmap 与索引构建之间存在 TOCTOU 竞态
dailz pushed to master at dailz/logViewer 2026-06-03 14:55:06 +08:00
b6e655bff6 fix(io): handle file shrink in update_for_append to prevent SIGBUS
dailz commented on issue dailz/logViewer#1 2026-06-03 14:52:26 +08:00
🔴 [H1] 文件缩小后 mmap 未处理 → SIGBUS 崩溃

Fixed in b6e655b.

Root cause: update_for_append() returned Ok(0) when new_size <= old_size, leaving a stale mmap that would SIGBUS on access.

Fix: Introduced AppendStatus enum (`Unchanged…

dailz closed issue dailz/logViewer#1 2026-06-03 14:50:35 +08:00
🔴 [H1] 文件缩小后 mmap 未处理 → SIGBUS 崩溃
dailz opened issue dailz/logViewer#30 2026-06-03 13:54:29 +08:00
🟢 [L4] 设置保存错误被忽略
dailz opened issue dailz/logViewer#32 2026-06-03 13:54:29 +08:00
🟢 [L6] load_file 失败后 watcher 已清空但旧状态残留
dailz opened issue dailz/logViewer#31 2026-06-03 13:54:29 +08:00
🟢 [L5] 设置弹窗坐标未加 area 偏移
dailz opened issue dailz/logViewer#29 2026-06-03 13:54:28 +08:00
🟢 [L3] 颜色向后循环不 wrap
dailz opened issue dailz/logViewer#28 2026-06-03 13:54:28 +08:00
🟢 [L2] 词边界检测允许数字和下划线,ERROR123 被错误识别
dailz opened issue dailz/logViewer#27 2026-06-03 13:54:28 +08:00
🟢 [L1] Tab 在窄终端(<4列)扩展超出宽度
dailz opened issue dailz/logViewer#26 2026-06-03 13:53:58 +08:00
🟡 [M16] TUI 渲染无 MAX_WRAP_INPUT_LEN 保护,巨大单行可冻结 UI
dailz opened issue dailz/logViewer#18 2026-06-03 13:53:57 +08:00
🟡 [M8] 配置写入非原子,并发读取可能回退默认
dailz opened issue dailz/logViewer#19 2026-06-03 13:53:57 +08:00
🟡 [M9] 非字符串类型的 timestamp/level 字段被静默丢弃
dailz opened issue dailz/logViewer#17 2026-06-03 13:53:57 +08:00
🟡 [M7] 并发缓存保存共享同一临时文件路径