Skip to content

Qt fixes v2.5.1#21

Open
D-Triveni wants to merge 6 commits intonrfconnect:qt_v2.5.1from
D-Triveni:qt_fixes_v2.5.1
Open

Qt fixes v2.5.1#21
D-Triveni wants to merge 6 commits intonrfconnect:qt_v2.5.1from
D-Triveni:qt_fixes_v2.5.1

Conversation

@D-Triveni
Copy link
Collaborator

No description provided.

@krish2718
Copy link
Collaborator

Please don't use empty commit log body

D-Triveni and others added 6 commits February 27, 2024 03:06
Replaced sprintf with snprintf to enhance string length
handling.

Signed-off-by: Triveni Danda <triveni.danda@nordicsemi.no>
…changes

Control socket is opened by supplicant, so sending
request on the control is enough.

Signed-off-by: Triveni Danda <triveni.danda@nordicsemi.no>
…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 <triveni.danda@nordicsemi.no>
Use strncpy to prevent buffer overflow vulnerabilities.

Signed-off-by: Triveni Danda <triveni.danda@nordicsemi.no>
Implement imperative check for supplicant
readiness prior to QT thread initiation.

Signed-off-by: Triveni Danda <triveni.danda@nordicsemi.no>
STA disconnect doesn't any reboot.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Copy link
Collaborator

@krish2718 krish2718 left a 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__); \
Copy link
Collaborator

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) \
Copy link
Collaborator

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

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.

2 participants