We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
in file /kernels/dios_ssp_doa/dios_ssp_doa_api.c line 125, ptr_doa->m_doa_fid = (int*)calloc(ptr_doa->m_angle_num, sizeof(int));
you only alloc ptr_doa->m_angle_num ,but when you use it
line 169- > Line 172 for(i = 0; i < ptr_doa->m_frq_bin_num; ++i) { ptr_doa->m_doa_fid[i] = ptr_doa->m_low_fid + (iptr_doa->m_frq_spptr_doa->m_fft_size)/ptr_doa->m_fs; }
when tr_doa->m_frq_bin_num larger than ptr_doa->m_angle_num there could be a memory leak risk occurs
The text was updated successfully, but these errors were encountered:
No branches or pull requests
in file
/kernels/dios_ssp_doa/dios_ssp_doa_api.c
line 125, ptr_doa->m_doa_fid = (int*)calloc(ptr_doa->m_angle_num, sizeof(int));
you only alloc ptr_doa->m_angle_num ,but when you use it
line 169- > Line 172
for(i = 0; i < ptr_doa->m_frq_bin_num; ++i)
{
ptr_doa->m_doa_fid[i] = ptr_doa->m_low_fid + (iptr_doa->m_frq_spptr_doa->m_fft_size)/ptr_doa->m_fs;
}
when tr_doa->m_frq_bin_num larger than ptr_doa->m_angle_num
there could be a memory leak risk occurs
The text was updated successfully, but these errors were encountered: