Commit fbdd35a
committed
Address Copilot review on PR #3560
1. Add missing bound check before reading value_len (Copilot #1 — real
bug). After consuming the name field, blob_offset can advance to
exactly blob_size; the subsequent 16-bit read of value_len from
blob[blob_offset] / blob[blob_offset+1] would then OOB-read on a
truncated blob. Fixed with the standard 2-byte check.
2. Drop tests/regression/persist_dbm/ (Copilot #2-#5). The directory
was not wired into the Autotools build (no AC_CONFIG_FILES nor
parent SUBDIRS entry), and the existing tests/regression/ is a
Perl-based HTTP integration harness that doesn't fit a unit test
of a static function. Wiring it into tests/Makefile.am where
msc_test lives would require non-trivial restructuring; keeping
the standalone harness outside the upstream tree (in the security
advisory's PoC archive) is the cleaner path for now.
Refs: PR #3560 review comments by github-actions[bot] / Copilot.1 parent d7759ab commit fbdd35a
3 files changed
Lines changed: 2 additions & 310 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
This file was deleted.
Lines changed: 0 additions & 304 deletions
This file was deleted.
0 commit comments