Skip to content

Fuzz RTCM3 frame validation - #580

Draft
rootkiller6788 wants to merge 1 commit into
facebook:mainfrom
rootkiller6788:fuzz-rtcm-parseframe
Draft

Fuzz RTCM3 frame validation#580
rootkiller6788 wants to merge 1 commit into
facebook:mainfrom
rootkiller6788:fuzz-rtcm-parseframe

Conversation

@rootkiller6788

Copy link
Copy Markdown

Summary

Adds a fuzz target for the rtcm package's ParseFrame entry point, which validates RTCM3 frame framing (preamble, 10-bit payload length) and CRC-24Q. ParseFrame is the core validator invoked by both Scanner and MixedScanner, the incremental scanners cmd/ntripper uses to ingest untrusted GNSS correction data from a socket.

The rtcm package is the one network-facing binary parser without fuzz coverage; this matches the repo's existing OSS-Fuzz targets (ntp/protocol FuzzBytesToPacket, ptp/protocol FuzzDecodePacket, ntp/chrony FuzzDecodePacket, ntp/control FuzzNormalizeData, leaphash FuzzCompute, leapsectz FuzzParse, fbclock/daemon FuzzPrepareExpression).

Verification

  • go test ./rtcm/ passes (all existing tests)
  • go vet ./rtcm/ clean
  • go test -fuzz FuzzParseFrame -fuzztime=5s — 460k execs across 24 workers, 0 crashes

Type

tests

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant