xmos / lib_xcore_math

XMOS optimised arithmetic and vector processing library
Other
6 stars 14 forks source link

Potential xs3_filter_fir_s32 buffer overrun issue #121

Closed keithm-xmos closed 1 year ago

keithm-xmos commented 1 year ago

It has been observed when the number of filter taps is 1024 that a buffer may be overrun. This was observed in an application where other threads were running and an overrun corrupted some data causing an exception. It is not known with 100% certainty that the xs3_filter_fir_s32 function is the culprit. Here is the evidence:

(mention @QuinnWang)

astewart-xmos commented 1 year ago

Extensive debugging has gone into this between myself and @keithm-xmos. There are a couple pieces of evidence that point to xs3_filter_fir_s32(), but no smoking gun has been found, and I don't see any way in which xs3_filter_fir_s32() could be clobbering anyone else's memory.

Unless new evidence is found pointing to xs3_filter_fir_s32(), I am going to assume it is not the culprit.

keithm-xmos commented 1 year ago

The source of the buffer overrun has been found and lib_xcore_math is no longer a suspect in the case.

Those interested can follow this issue: https://github.com/xmos/xscope_fileio/issues/52