Skip to content

apps/bttester: Fix null pointer dereference#2253

Merged
sjanc merged 1 commit into
apache:masterfrom
mkasenberg:bttester-fix-null-deref
Jul 7, 2026
Merged

apps/bttester: Fix null pointer dereference#2253
sjanc merged 1 commit into
apache:masterfrom
mkasenberg:bttester-fix-null-deref

Conversation

@mkasenberg

Copy link
Copy Markdown
Contributor

The 'cmd' is a pointer to struct btp_buf, not a flat buffer. The 'ev' field of the 'struct btp_buf' is initiated only once, in the avail_queue_init(void) function, so the 'struct btp_buf' instance cannot be completely zeroed out when restoring to 'avail_queue'.

The 'cmd' is a pointer to struct btp_buf, not a flat buffer.
The 'ev' field of the 'struct btp_buf' is initiated only once, in the
avail_queue_init(void) function, so the 'struct btp_buf' instance
cannot be completely zeroed out when restoring to 'avail_queue'.
@sjanc

sjanc commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

#AutoPTS run mynewt SM/CEN/SCPK/BV-01-C

@codecoup-tester

Copy link
Copy Markdown

Scheduled PR #2253 (comment), board: nrf52, estimated start time: 09:14:18, test case count: 1, estimated duration: 0:10:25

Test cases to be runSM/CEN/SCPK/BV-01-C

@codecoup-tester

Copy link
Copy Markdown

AutoPTS Bot results:
No failed test found.

Successful tests (1)SM SM/CEN/SCPK/BV-01-C PASS

@sjanc sjanc merged commit 7af6db1 into apache:master Jul 7, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Small PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants