libsndfile / libsamplerate

An audio Sample Rate Conversion library
http://libsndfile.github.io/libsamplerate/
BSD 2-Clause "Simplified" License
600 stars 167 forks source link

Out of bound array access in src_linear.c #208

Open lkoenig opened 6 months ago

lkoenig commented 6 months ago

In some particular cases, src_linear.c perform an access on the input array with an index of -1 in https://github.com/libsndfile/libsamplerate/blob/master/src/src_linear.c#L122 when priv->in_used is 0 because.

I'll add a PR with a test case catching this corner case.

evpobr commented 4 months ago

Hi @lkoenig

lkoenig commented 4 months ago

Hi @evpobr :-)