]> git.ipfire.org Git - thirdparty/pdns.git/commit
rather than crash, sheepishly report no file/linenum 6556/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 15 Mar 2018 16:51:18 +0000 (17:51 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 1 May 2018 15:31:18 +0000 (17:31 +0200)
commite25488ff90bbf54429a480d94d28caaf2ee86db4
tree337bab0cdf510f461f2de68456a53b53e4b04c9a
parent3b73e61ac8ca7e62119c5740a610f69ff17636d2
rather than crash, sheepishly report no file/linenum

Before this commit, you could crash pdnsutil edit-zone this way:
1) run pdnsutil edit-zone example.org
2) add a line saying: IN TXT ("
3) exit editor

I suspect other consumers of the zone file parser could also crash this way.

After this commit, we don't crash but we fail to report the line number.
There is room for more improvement here.

(cherry picked from commit 9923fc22f4bf5cb096364f42fde40f3db2a64407)
pdns/zoneparser-tng.cc