#42 Blank Line on playlist makes mpg321 segfaults

open
Joe Drew
5
2008-05-18
2008-05-18
Rafael Zanella
No

When there's an empty line, with only '\n', on the playlist mpg321 will segfault on playlist.c -> trim_whitespace()

I've attached a patch which I believe solves the issue.

Discussion

  • Rafael Zanella
    Rafael Zanella
    2008-05-18

    Prevents decremeting the counter if it's a string with size 1 and the single char is a space char

     
    Attachments