woikos
41a3b5c0a5
Fix OOM crash from corrupt compact event data
...
Add sanity bounds to prevent memory exhaustion when decoding corrupt
events with garbage varint values. Previously, corrupt data could cause
massive allocations (e.g., make([]byte, 2^60)) leading to OOM crashes.
- Add MaxTagsPerEvent (10000), MaxTagElements (100), MaxContentLength (10MB),
MaxTagElementLength (1MB) limits
- Return sentinel errors for corrupt data instead of logging
- Silently skip corrupt events (caller handles gracefully)
This fixes crash loops on archive.orly.dev where OOM during writes
left corrupt events in bbolt database.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-09 11:46:36 +01:00
..
2026-01-07 03:40:12 +01:00
2025-12-25 06:03:53 +01:00
2025-11-23 08:15:06 +00:00
2026-01-02 19:35:16 +01:00
2025-11-23 08:15:06 +00:00
2025-12-23 14:47:50 +01:00
2025-12-02 07:51:59 +00:00
2025-12-03 12:31:25 +00:00
2026-01-09 11:46:36 +01:00
2025-12-03 20:49:49 +00:00
2025-12-03 21:24:43 +00:00
2025-12-03 12:31:25 +00:00
2026-01-05 21:42:17 +01:00
2025-12-12 08:47:25 +01:00
2025-12-03 12:31:25 +00:00
2025-12-03 12:31:25 +00:00
2025-11-23 08:15:06 +00:00
2025-12-04 09:28:13 +00:00
2025-12-25 05:30:07 +01:00
2026-01-03 07:17:48 +01:00
2025-12-29 02:18:05 +02:00
2026-01-06 06:50:58 +01:00
2025-12-25 05:30:07 +01:00
2026-01-06 05:51:34 +01:00
2026-01-06 05:51:34 +01:00
2025-11-26 21:16:46 +00:00
2025-12-03 12:31:25 +00:00
2025-12-03 12:31:25 +00:00
2025-11-23 08:15:06 +00:00
2025-12-25 06:03:53 +01:00
2025-11-23 08:15:06 +00:00
2025-11-26 21:16:46 +00:00
2025-12-25 05:30:07 +01:00
2025-12-03 12:31:25 +00:00
2025-12-25 05:30:07 +01:00
2025-12-03 12:31:25 +00:00
2026-01-05 21:42:17 +01:00
2025-12-04 09:28:13 +00:00
2025-12-04 09:28:13 +00:00
2025-12-04 09:28:13 +00:00
2025-12-04 09:28:13 +00:00
2026-01-05 21:42:17 +01:00
2025-12-04 09:28:13 +00:00
2025-12-04 09:28:13 +00:00
2025-12-04 09:28:13 +00:00
2025-12-03 12:31:25 +00:00
2025-12-11 21:36:39 +01:00
2025-12-12 08:47:25 +01:00
2025-12-05 14:42:22 +00:00
2026-01-02 19:35:16 +01:00
2025-12-03 12:31:25 +00:00
2025-12-25 06:25:21 +01:00
2025-12-25 06:25:21 +01:00
2025-12-03 12:31:25 +00:00
2025-12-03 12:31:25 +00:00
2026-01-05 21:42:17 +01:00
2025-11-09 10:41:58 +00:00
2025-12-03 12:31:25 +00:00
2026-01-07 03:40:12 +01:00
2025-11-02 18:19:52 +00:00
2025-12-03 12:31:25 +00:00
2025-11-20 09:16:54 +00:00
2025-11-20 09:16:54 +00:00
2025-11-20 05:13:56 +00:00
2025-12-25 05:30:07 +01:00
2025-12-03 12:31:25 +00:00
2025-12-25 05:30:07 +01:00
2025-12-25 05:30:07 +01:00
2025-11-23 08:15:06 +00:00
2025-12-05 11:25:34 +00:00
2025-12-25 05:30:07 +01:00
2025-12-25 05:30:07 +01:00
2025-12-03 12:31:25 +00:00
2025-12-25 05:30:07 +01:00
2025-12-03 12:31:25 +00:00
2025-12-25 05:30:07 +01:00
2025-12-25 05:30:07 +01:00
2025-12-25 05:30:07 +01:00
2025-12-25 05:30:07 +01:00
2025-11-23 08:15:06 +00:00
2025-12-03 12:31:25 +00:00
2025-12-01 18:21:38 +00:00
2025-12-03 12:31:25 +00:00
2025-12-25 05:30:07 +01:00
2025-12-01 18:21:38 +00:00
2025-12-25 06:03:53 +01:00
2026-01-06 05:51:34 +01:00
2025-08-31 16:52:24 +01:00
2025-12-03 12:31:25 +00:00
2025-12-25 05:30:07 +01:00
2026-01-07 03:40:12 +01:00
2025-12-22 18:53:30 +01:00
2025-12-03 12:31:40 +00:00
2025-12-22 18:53:30 +01:00
2026-01-07 03:40:12 +01:00
2025-12-22 18:53:30 +01:00
2025-12-27 16:32:48 +02:00