christf / snapcastc

C implementation of snapcast focussing on audio quality and ease of maintenance.
GNU General Public License v3.0
43 stars 6 forks source link

server: Avoid invalid read when removing old audiodata #53

Closed christf closed 4 years ago

christf commented 4 years ago

Stop removing old data when the vector is empty to avoid reading free'd memory.

this fixes the invalid read issue mentinoed in #44