Skip to content

Fix comparison/buffer size calculation in snprintf calls#7

Open
mu-b wants to merge 1 commit intoopenwrt:masterfrom
mu-b:fix-comp-calc
Open

Fix comparison/buffer size calculation in snprintf calls#7
mu-b wants to merge 1 commit intoopenwrt:masterfrom
mu-b:fix-comp-calc

Conversation

@mu-b
Copy link
Copy Markdown

@mu-b mu-b commented Mar 29, 2026

Fixes an obviously incorrect comparison checking the return value from socket(). Also, some bad arithmetic in the snprintf for ifb name (needs looking at! don't quite know what you intend here) otherwise for certain values of 'len' your reading a negative offset.

Fixes an obviously incorrect comparison checking the return value from socket(). Also, some bad arithmetic in the snprintf for ifb name (needs looking at! don't quite know what you intend here) otherwise for certain values of 'len' your reading a negative offset.

Signed-off-by: Neil Kettle <neil@digit-labs.org>
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