Skip to content

apps/bttester: Fix null pointer dereference#2253

Open
mkasenberg wants to merge 1 commit into
apache:masterfrom
mkasenberg:bttester-fix-null-deref
Open

apps/bttester: Fix null pointer dereference#2253
mkasenberg wants to merge 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'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant