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

ndef: Fix text payloads getting truncated. #26

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

Apokalypzx
Copy link
Contributor

Text payloads larger than ~200 characters in length get truncated due
to the variable 'len' being uint8_t. Changing it to uint32_t fixes
this issue, allowing the whole text payload to be extracted.

@Apokalypzx
Copy link
Contributor Author

Fixed commit description to <72 char lines.

@Apokalypzx
Copy link
Contributor Author

New commit should compile without emitting a format warning.

@krzk
Copy link
Collaborator

krzk commented Jun 26, 2024

The previous commit was not merged, so please correct it instead of creating one more. IOW, squash it to previous commit.

Copy link
Collaborator

@krzk krzk left a comment

Choose a reason for hiding this comment

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

Squash the commits. This should be only one, proper commit. Not one bad and one good.

@Apokalypzx
Copy link
Contributor Author

10th time's the charm. Hopefully this PR is acceptable. I apologize for my previous mistakes, I have very little experience in contributing to upstream projects. Thank you guys for all you do.

Copy link
Collaborator

@krzk krzk left a comment

Choose a reason for hiding this comment

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

Where is the commit msg? The commits should have been fixed-up into one, which will keep the original commit message.

Change "len" from uint8_t to int so it can accurately represent the
full size of a text payload greater than 255 characters.
@Apokalypzx
Copy link
Contributor Author

I just now added the message. I figured the title was descript enough, no detailed message needed; I'm guessing no detailed message breaks protocol?

@krzk krzk merged commit a0a7d4d into linux-nfc:master Jul 2, 2024
120 checks passed
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.

None yet

2 participants