libsndfile / libsamplerate

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

Avoid UB in overlap checks #220

Open Flamefire opened 4 months ago

Flamefire commented 4 months ago

Doing pointer arithmetic on a NULL pointer is undefined behavior. This got flagged in a run using UBSAN. Disable the checks if any of the data pointers is NULL.