Skip to content

tftp: verify direction in a few places - #22974

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/tftp-dir
Closed

bagder wants to merge 1 commit into
masterfrom
bagder/tftp-dir

Conversation

@bagder

@bagder bagder commented Sep 16, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new malformed-packet rejection paths need regression coverage for both transfer directions.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds defensive TFTP direction validation to prevent processing packets inconsistent with upload/download mode.

Changes:

  • Rejects transmit handling during downloads.
  • Validates initial ACK/DATA packet direction.
  • Prevents DATA delivery during uploads.
File summaries
File Description
lib/tftp.c Adds upload/download direction checks to TFTP state handling.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lib/tftp.c
@bagder
bagder marked this pull request as ready for review September 17, 2026 06:03
@bagder bagder closed this in 63dd390 Sep 17, 2026
@bagder
bagder deleted the bagder/tftp-dir branch September 17, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants