Skip to content

Conversation

@aap-sc
Copy link
Collaborator

@aap-sc aap-sc commented Oct 13, 2025

when running OpenOCD built with ubsan enabled I've encountered the following error message:

riscv-013.c:204:9: runtime error: null pointer passed as argument 2, ...

Checkpatch-ignore: GIT_COMMIT_ID

This is caused by a NULL pointer passed to bsearch function when abstract command cache is still empty. This behavor was introduced in commit ab97974 ("target/riscv: implement abstract command cache ...")

See: riscv-collab/riscv-openocd#1297

…cache lookup

when running OpenOCD built with ubsan enabled I've encountered the
following error message:

```
riscv-013.c:204:9: runtime error: null pointer passed as argument 2, ...
```

Checkpatch-ignore: GIT_COMMIT_ID

This is caused by a NULL pointer passed to bsearch function when
abstract command cache is still empty. This behavor was introduced in
commit ab97974 ("target/riscv: implement abstract command cache ...")

See: riscv-collab/riscv-openocd#1297

Signed-off-by: Parshintsev Anatoly <[email protected]>
@aap-sc aap-sc requested a review from en-sc October 13, 2025 19:49
@en-sc en-sc closed this Oct 14, 2025
@aap-sc aap-sc reopened this Oct 15, 2025
@aap-sc aap-sc merged commit d003d07 into syntacore Oct 15, 2025
8 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.

3 participants