selsta / hlsdl

C program to download VoD HLS (.m3u8) files
MIT License
640 stars 157 forks source link

BO fix #100

Closed ddittert closed 3 years ago

ddittert commented 3 years ago

This pull request fixes a buffer overflow vulnerability with long output file names. Due to a static buffer an attacker could access and write protected memory. The suggested code fixes this vulnerability by checking the length of the supplied name and using the default filename if the name is longer than the size of the buffer.

selsta commented 3 years ago

Thank you.