Skip to content

Commit

Permalink
ndef: Fix unexpected truncation while parsing text payloads.
Browse files Browse the repository at this point in the history
  • Loading branch information
Apokalypzx committed Jun 28, 2024
1 parent 17b8110 commit 47a60d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ndef.c
Original file line number Diff line number Diff line change
Expand Up @@ -1005,9 +1005,10 @@ static struct near_ndef_text_payload *
parse_text_payload(uint8_t *payload, uint32_t length)
{
struct near_ndef_text_payload *text_payload = NULL;
uint8_t status, lang_length, len;
uint8_t status, lang_length;
char *g_str, *txt;
uint32_t offset;
int len;
gboolean valid;

DBG("");
Expand Down

0 comments on commit 47a60d5

Please sign in to comment.