Fix memory corruption exposed by GNURadio 3.2.
git-svn-id: http://op25.osmocom.org/svn/trunk@148 65a5c917-d112-43f1-993d-58c26a4786be
This commit is contained in:
parent
22d0b88265
commit
977c9a6e94
|
@ -79,11 +79,8 @@ op25_decoder_ff::general_work(int nof_output_items, gr_vector_int& nof_input_ite
|
|||
receive_symbol(d);
|
||||
}
|
||||
consume(0, nof_input_items[0]);
|
||||
|
||||
for(int i = 0; i < nof_output_items; ++i) {
|
||||
float *out = reinterpret_cast<float*>(&output_items[i]);
|
||||
fill(&out[0], &out[nof_output_items], 0.0); // audio silence - for now
|
||||
}
|
||||
float *out = reinterpret_cast<float*>(output_items[0]);
|
||||
fill(out, out + nof_output_items, 0.0); // audio silence - for now
|
||||
return nof_output_items;
|
||||
|
||||
} catch(const std::exception& x) {
|
||||
|
|
Reference in New Issue