avahi / avahi

Avahi - Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour
http://www.avahi.org
GNU Lesser General Public License v2.1
1.17k stars 325 forks source link

avahi fails if avahi-daemon.conf file has any line that exceeds 255 characters #315

Open dkerr64 opened 3 years ago

dkerr64 commented 3 years ago

avahi daemon fails with an error if any line in the conf file exceeds 255 characters, including comment lines. I traced the problem to ini-file-parser.c where 256 bytes is allocated on the stack to hold each line. As a quick fix I bumped it up to 1024 and that solved my problem.

The reason I exceeded 255 characters is because I use reflect-filters and with that it is quite easy to have a long line length if you have several different types of devices you want to reflect across LAN subnets.

Thanks DAK.

abelbeck commented 3 years ago

Nice find! Your solution looks good for a minimal impact fix.