FireFly Media Server (formerly mt-daapd) › Firefly Media Server Forums › Firefly Media Server › Nightlies Feedback › svn-1655 – Crash reading config file …. › Reply To: svn-1655 – Crash reading config file ….
I am getting a crash when reading the config file, specifically on line 915 of io.c.
numread is 0 in my case and buf[numread-1] is not so cool ….
I put in a simple check in the if to make sure that nothing happens in the numread ==0 case.
Oops.. actually, the EOF check should be before the line parsing stuff. D’oh. I cut and pasted some stuff around for the windows line ending conversions and missed the obvious. D’oh!
Will be fixed next nightly.