Skip to content

bladerf_common: fix null pointer dereference in init_refclk()#21

Open
MrCry0 wants to merge 1 commit intoNuand:mainfrom
MrCry0:fix/nullptr-deref
Open

bladerf_common: fix null pointer dereference in init_refclk()#21
MrCry0 wants to merge 1 commit intoNuand:mainfrom
MrCry0:fix/nullptr-deref

Conversation

@MrCry0
Copy link

@MrCry0 MrCry0 commented Mar 14, 2026

If bladerf_get_pll_refclk_range() fails, range remains nullptr. The subsequent range->min/max dereference then causes undefined behavior. Return early on error instead of falling through.

If bladerf_get_pll_refclk_range() fails, range remains nullptr.
The subsequent range->min/max dereference then causes undefined
behavior. Return early on error instead of falling through.

Signed-off-by: Oleksandr Suvorov <cryosay@gmail.com>
@MrCry0 MrCry0 force-pushed the fix/nullptr-deref branch from 4ace1ac to 748ba97 Compare March 18, 2026 13:10
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.

1 participant