Skip to content
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

nfc: Fix handling 0 size data in nfc_platform #13506

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

dchat-nordic
Copy link
Contributor

Fix handling data with 0 size when issuing a callback.

Jira: NCSDK-25211

@github-actions github-actions bot added the doc-required PR must not be merged without tech writer approval. label Dec 22, 2023
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Dec 22, 2023

Test specification

CI/Jenkins/NRF

  • Integration Platforms

CI/Jenkins/integration

Test Module File based changes Manually selected West overwrite
test-sdk-find-my X

Detailed information of selected test modules

Note: This message is automatically posted and updated by the CI

@NordicBuilder
Copy link
Contributor

You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds.

Note: This comment is automatically posted by the Documentation Publishing GitHub Action.

Copy link
Contributor

@peknis peknis left a comment

Choose a reason for hiding this comment

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

Approving with minor nits.

@@ -650,7 +650,7 @@ Libraries for networking
Libraries for NFC
-----------------

|no_changes_yet_note|
* Fixed an issue with handling 0 size data in :file:`platform_internal_thread` file.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Fixed an issue with handling 0 size data in :file:`platform_internal_thread` file.
* Fixed an issue with handling zero size data in the :file:`platform_internal_thread` file.

Copy link
Contributor

@grochu grochu left a comment

Choose a reason for hiding this comment

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

Adding just a documentation-related comment, the change looks good.

subsys/nfc/lib/platform_internal_thread.c Outdated Show resolved Hide resolved
struct nfc_item_header {
uint16_t ctx_size;
uint8_t ctx_size;
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we add a range for config NFC_LIB_CTX_MAX_SIZE?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

Fix handling data with 0 size when issuing a callback.

Jira: NCSDK-25211

Signed-off-by: Dominik Chat <[email protected]>
Copy link
Contributor

@KAGA164 KAGA164 left a comment

Choose a reason for hiding this comment

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

LGTM

@nordicjm nordicjm merged commit d1bbd45 into nrfconnect:main Jan 10, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-required PR must not be merged without tech writer approval.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants