Skip to content

fix: deep code review pass 35 - 6 issues fixed - #281

Merged
mikemiles-dev merged 4 commits into
mainfrom
fix/deep-code-review-pass-35
Mar 15, 2026
Merged

fix: deep code review pass 35 - 6 issues fixed#281
mikemiles-dev merged 4 commits into
mainfrom
fix/deep-code-review-pass-35

Conversation

@mikemiles-dev

Copy link
Copy Markdown
Owner
  • Reject flowsets with header.length < 4 in IPFIX and V9 pending flow caching (saturating_sub produced 0, bypassing truncation check)
  • Reconcile IPFIX header.length from remaining flowsets after caching (prevents drift from saturating arithmetic on corrupt input)
  • Add debug_assert for I24/U24 value range in serialization
  • Add Ord derive to ApplicationId for consistency with other field types
  • Replace ~20 vacuous let _ = parser.parse_bytes() in tests with assertions verifying parse success (template_cache, cache_collision, memory_bounds, template_hooks)
  • Tighten PCAP integration test assertions from > 0 to exact values (6666 packets, 17 cache entries, 5754 hits, 901 misses)

- Reject flowsets with header.length < 4 in IPFIX and V9 pending flow
  caching (saturating_sub produced 0, bypassing truncation check)
- Reconcile IPFIX header.length from remaining flowsets after caching
  (prevents drift from saturating arithmetic on corrupt input)
- Add debug_assert for I24/U24 value range in serialization
- Add Ord derive to ApplicationId for consistency with other field types
- Replace ~20 vacuous `let _ = parser.parse_bytes()` in tests with
  assertions verifying parse success (template_cache, cache_collision,
  memory_bounds, template_hooks)
- Tighten PCAP integration test assertions from `> 0` to exact values
  (6666 packets, 17 cache entries, 5754 hits, 901 misses)
… migrate from

Remove 8 items that were deprecated in the same version they shipped:

- `crate::field_types` module (use `variable_versions::field_types`)
- `crate::template_events` module (use `variable_versions::template_events`)
- `NetflowParserBuilder::multi_source()` (use `try_multi_source()`)
- `RouterScopedParser::with_builder()` (use `try_with_builder()`)
- `AutoScopedParser::with_builder()` (use `try_with_builder()`)
- `variable_versions::data_number` module (use `variable_versions::field_value`)
- `IpFixFlowRecord` type alias (use `IPFixFlowRecord`)
- `FieldValue::Unknown` variant (use `FieldValue::Vec`)

Update RELEASES.md to reflect removals instead of deprecations.
@mikemiles-dev
mikemiles-dev merged commit f7edc61 into main Mar 15, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant