Skip to content

FTP: Fix off-by-one in data byte index range - #730

Merged
hamishwillee merged 1 commit into
masterfrom
pr-fix-ftp-offbyone
Jul 14, 2026
Merged

FTP: Fix off-by-one in data byte index range#730
hamishwillee merged 1 commit into
masterfrom
pr-fix-ftp-offbyone

Conversation

@julianoes

Copy link
Copy Markdown
Contributor

Summary

Fixes the byte index range for the data[] field in the MAVFTP Payload Format table.

The FILE_TRANSFER_PROTOCOL message's payload field has a length of 251 bytes, so valid indices run from 0 to 250. Since the header occupies bytes 0–11, the data field spans indices 12 to 250 (239 bytes), not 12 to 251.

Change

  • en/services/ftp.md: 12 to (max) 25112 to (max) 250

Fixes #728

The FILE_TRANSFER_PROTOCOL payload is 251 bytes (indices 0-250), so
the data[] field spans indices 12 to 250, not 12 to 251.

Fixes #728

@hamishwillee hamishwillee left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hamishwillee
hamishwillee merged commit 3bce514 into master Jul 14, 2026
3 checks passed
@hamishwillee
hamishwillee deleted the pr-fix-ftp-offbyone branch July 14, 2026 23:22
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.

MAVFTP Payload Format doc: data byte index off-by-one

2 participants