Skip to content

ftp: improve fragile check for first digit > 3#18870

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/ftp-digit-check
Closed

ftp: improve fragile check for first digit > 3#18870
bagder wants to merge 1 commit into
masterfrom
bagder/ftp-digit-check

Conversation

@bagder

@bagder bagder commented Oct 6, 2025

Copy link
Copy Markdown
Member

In a case where rubbish would be sent in the line something that isn't a digit could be first in line and treated as less than '3'. Prevent this risk by first doing a check that the byte is a digit.

In a case where rubbish would be sent in the line something that isn't a
digit could be first in line and treated as less than '3'. Prevent this
risk by first doing a check that the byte is a digit.
@bagder bagder added the FTP label Oct 6, 2025
@bagder bagder marked this pull request as ready for review October 6, 2025 08:22
@bagder bagder closed this in 6ef4871 Oct 6, 2025
@bagder bagder deleted the bagder/ftp-digit-check branch October 6, 2025 13:56
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.

1 participant