Commit 7bd8ec8
committed
fix(hu): address Copilot round-2 findings on PR #236
- ros.rs: use checked integer conversions (try_from) for JSON->CDR so
out-of-range values error instead of silently truncating
- state.rs: reject window_ms == 0 in get_tracker_snapshot to avoid
divide-by-zero producing inf/NaN rates in measure_hz/measure_bw
- engine.rs: serialize connect/endpoints with serde_json instead of
format! to be safe against quotes/backslashes in router addresses
- mod.rs: strip both hu- and hu_ prefixes for plugin work-dir naming,
matching discover_wasm_plugins1 parent fb81f40 commit 7bd8ec8
4 files changed
Lines changed: 24 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
| 412 | + | |
| 413 | + | |
413 | 414 | | |
414 | 415 | | |
415 | | - | |
| 416 | + | |
| 417 | + | |
416 | 418 | | |
417 | 419 | | |
418 | | - | |
| 420 | + | |
| 421 | + | |
419 | 422 | | |
420 | 423 | | |
421 | 424 | | |
422 | | - | |
| 425 | + | |
| 426 | + | |
423 | 427 | | |
424 | 428 | | |
425 | | - | |
| 429 | + | |
| 430 | + | |
426 | 431 | | |
427 | 432 | | |
428 | | - | |
| 433 | + | |
| 434 | + | |
429 | 435 | | |
430 | 436 | | |
431 | 437 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
435 | 440 | | |
436 | 441 | | |
437 | 442 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
214 | 217 | | |
215 | 218 | | |
216 | 219 | | |
| |||
0 commit comments