From a2af18de1e1f955aa117e091d5ad503b13533620 Mon Sep 17 00:00:00 2001 From: Anthony Ronning <101225832+AnthonyRonning@users.noreply.github.com> Date: Thu, 19 Nov 2026 06:33:40 -0800 Subject: [PATCH] Agent: fix nightly heapless advisories RustSec published RUSTSEC-2026-0574 through 0582 (heapless unsoundness) on Nov 18, failing agent-supply-chain for both heapless versions in the Agent lockfile. - heapless 0.9.3 -> 0.9.4 (gpui, sum_tree): the patched release. - heapless 0.7.17 has no patched 0.7 release and is only pulled in by postcard 1.1.3's default feature via the pinned CUA cursor-overlay. None of the affected APIs are reachable, so the nine ids get reviewed ignores in deny.toml. Co-Authored-By: Claude --- apps/maple-agent/Cargo.lock | 8 ++++---- apps/maple-agent/deny.toml | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/apps/maple-agent/Cargo.lock b/apps/maple-agent/Cargo.lock index 1870bb146..1312a6bdc 100644 --- a/apps/maple-agent/Cargo.lock +++ b/apps/maple-agent/Cargo.lock @@ -3840,7 +3840,7 @@ dependencies = [ "gpui_shared_string", "gpui_util", "hdrhistogram", - "heapless 0.9.3", + "heapless 0.9.4", "http_client", "icu_segmenter", "image", @@ -4313,9 +4313,9 @@ dependencies = [ [[package]] name = "heapless" -version = "0.9.3" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25ba4bd83f9415b58b4ed8dc5714c76e626a105be4646c02630ad730ad3b5aa4" +checksum = "411fdef4df93751117bd9ef8caa0e7f99c65dafec5bd84313eb8e2fdd75e32f2" dependencies = [ "hash32 0.3.1", "stable_deref_trait", @@ -10132,7 +10132,7 @@ name = "sum_tree" version = "0.1.0" source = "git+https://github.com/zed-industries/zed?rev=c7bea343838f42b4c14151393e41f0bbe033c95e#c7bea343838f42b4c14151393e41f0bbe033c95e" dependencies = [ - "heapless 0.9.3", + "heapless 0.9.4", "rayon", "tracing", "ztracing", diff --git a/apps/maple-agent/deny.toml b/apps/maple-agent/deny.toml index 0a6ae4cd7..8651dfa4c 100644 --- a/apps/maple-agent/deny.toml +++ b/apps/maple-agent/deny.toml @@ -28,6 +28,23 @@ ignore = [ { id = "RUSTSEC-2026-0405", reason = "No SeekableCStream API or invalid caller-selected InBuffer position" }, { id = "RUSTSEC-2026-0406", reason = "Only fresh single-worker contexts are configured before streaming; no unfinished multithreaded frame" }, { id = "RUSTSEC-2026-0410", reason = "The faulty allocator shim is wasm32-only; Agent targets native macOS, Linux and Windows" }, + # heapless 0.7.17, which has no patched 0.7 release (fixes are 0.9.4 only). + # Its one dependent is postcard 1.1.3, whose default `heapless` feature is + # switched on by the pinned CUA cursor-overlay. postcard touches only + # heapless::Vec push/extend_from_slice (the HVec flavor) and MaxSize + # impls, and no consumer calls those entry points: cursor-overlay, iroh-relay + # and regorus use the alloc/std paths. The second heapless (gpui, sum_tree) + # is on the patched 0.9.4, so these ids only ever match 0.7.17. Remove when + # postcard moves off heapless 0.7 or CUA disables postcard's default features. + { id = "RUSTSEC-2026-0574", reason = "heapless 0.7.17 via postcard: sorted_linked_list is unused" }, + { id = "RUSTSEC-2026-0575", reason = "heapless 0.7.17 via postcard: spsc queues are unused" }, + { id = "RUSTSEC-2026-0576", reason = "heapless 0.7.17 via postcard: IndexMap is unused outside postcard's own tests" }, + { id = "RUSTSEC-2026-0577", reason = "heapless 0.7.17 via postcard: no Deque, HistoryBuf, IndexMap or Vec::into_iter use; only Vec, whose elements cannot panic on drop" }, + { id = "RUSTSEC-2026-0578", reason = "heapless 0.7.17 via postcard: sorted_linked_list is unused" }, + { id = "RUSTSEC-2026-0579", reason = "heapless 0.7.17 via postcard: Deque is unused, and the faulty TryFrom exists only in 0.9.2 and 0.9.3" }, + { id = "RUSTSEC-2026-0580", reason = "heapless 0.7.17 via postcard: pool and the treiber stack are unused" }, + { id = "RUSTSEC-2026-0581", reason = "heapless 0.7.17 via postcard: Deque is unused" }, + { id = "RUSTSEC-2026-0582", reason = "heapless 0.7.17 via postcard: IndexMap is unused outside postcard's own tests" }, ] [bans]