-
Notifications
You must be signed in to change notification settings - Fork 0
Description
dnsmasq allows in configuration files only to quote strings using a pair of double qutoes ("). Inside the quotes some escape sequences using back slash are allowed.
The implementation (dnsmasq:src/option.c function read_file()) is super hairy and hard to understand. The quote handling is done by replacing the backslash with the escaped value and calling memmove(p, p+1, strlen(p+1)+1) so it is potentially quadratic (why?!)
Since I think this would not be straight forward to implement (particularly with angstrom) and none of the example configs have quoted strings I suggest we investigate if it makes sense to not implement this feature. Particularly, it would be interesting to look for configurations that use quotes to determine the value of this feature. In the meantime I suggest we don't implement this feature.