Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in riscv mux GetDeviceInfos #657

Open
dlopr opened this issue Jan 24, 2025 · 1 comment
Open

Bug in riscv mux GetDeviceInfos #657

dlopr opened this issue Jan 24, 2025 · 1 comment

Comments

@dlopr
Copy link

dlopr commented Jan 24, 2025

In modules/mux/targets/riscv/source/device_info.cpp, if GetDeviceInfos is called with device_infos_length = 0 and out_device_infos = nullptr to query the number of available devices, it always returns 1 regardless of the actual number of devices detected in the system. See:

++num_infos_out;
if (num_infos_out >= device_infos_length) {
// no more space so terminate
break;
}

@coldav
Copy link
Collaborator

coldav commented Jan 24, 2025

Thanks for raising this issue! You are quite right. If you are interested we would welcome a pull request, or we will fix it in due course.

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

No branches or pull requests

2 participants