-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qt fixes v2.5.1 #21
base: qt_v2.5.1
Are you sure you want to change the base?
Qt fixes v2.5.1 #21
Conversation
Please don't use empty commit log body |
f32527f
to
f2479e7
Compare
6137d30
to
7583c22
Compare
7583c22
to
489eeb5
Compare
a01fbf4
to
389d831
Compare
389d831
to
7bdeeea
Compare
Replaced sprintf with snprintf to enhance string length handling. Signed-off-by: Triveni Danda <[email protected]>
…changes Control socket is opened by supplicant, so sending request on the control is enough. Signed-off-by: Triveni Danda <[email protected]>
…e destination buffer length This to ensure that the copying operation does not exceed the size of the destination buffer. Signed-off-by: Triveni Danda <[email protected]>
Use strncpy to prevent buffer overflow vulnerabilities. Signed-off-by: Triveni Danda <[email protected]>
Implement imperative check for supplicant readiness prior to QT thread initiation. Signed-off-by: Triveni Danda <[email protected]>
STA disconnect doesn't any reboot. Signed-off-by: Chaitanya Tata <[email protected]>
7bdeeea
to
f097c43
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Also, make the delay after
sento
for reboot configurable - one snprintf remaining in utils.c that isn't converted to macro
- My changes for get_mac_address from the patch
- My changes for run_qt_command
|
||
#define CHECK_SNPRINTF(dest, dest_size, ...) \ | ||
do { \ | ||
int result = snprintf(dest, dest_size, __VA_ARGS__); \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't declare variables in macros, let functions declare them and we just use it here
} \ | ||
} while(0) | ||
|
||
#define RUN_QT_COMMAND(request, ret) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need to pass ret
here, this is a macro not a function
No description provided.