Commit 8667f1f
authored
fix(security): imageproc 0.26, NaN panic hardening, audit.toml cleanup (#505)
Build on the existing security audit branch with additional hardening:
- **RUSTSEC-2026-0115/0116/0117**: Bump `imageproc 0.25` → `0.26.2` in
`examples/scipix/Cargo.toml`. All three soundness notices (improper bounds
checks and fragile sampling code) are fixed in 0.26.x. Remove the
now-stale ignore entries from `.cargo/audit.toml`.
Replace remaining bare `.partial_cmp(...).unwrap()` — which panics when
NaN appears in the slice — with `.total_cmp(...)` (stable since Rust 1.62,
NaN-total, no panic) in production source files:
- `crates/ruvllm/src/claude_flow/agent_router.rs` (score max/sort)
- `crates/ruvllm/src/claude_flow/task_classifier.rs` (score sort)
- `crates/ruvllm/src/evaluation/economics.rs` (percentile sort)
- `crates/ruvllm/src/metal/operations.rs` (argmax over logits)
- `crates/ruvllm/src/qat/calibration.rs` (percentile sort)
- `crates/ruvllm/src/training/grpo.rs` (reward/advantage max)
- `crates/ruvector-postgres/src/healing/strategies.rs` (strategy weight max)
- `crates/ruvector-postgres/src/learning/patterns.rs` (k-means++ distance)
- `crates/ruvector-postgres/src/learning/reasoning_bank.rs` (similarity sort)
- `crates/ruvector-postgres/src/math/operators.rs` (Wasserstein sort)
- `crates/ruvector-postgres/src/quantization/binary.rs` (rerank sort)
- `crates/ruvector-postgres/src/sparse/types.rs` (top-k sparse abs sort)
- `crates/ruvector-solver/src/forward_push.rs` (argmax in test)1 parent b04ea1f commit 8667f1f
16 files changed
Lines changed: 739 additions & 939 deletions
File tree
- .cargo
- crates
- ruvector-postgres/src
- healing
- learning
- math
- quantization
- sparse
- ruvector-solver/src
- ruvllm/src
- claude_flow
- evaluation
- metal
- qat
- training
- examples/scipix
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
0 commit comments