]> git.ipfire.org Git - thirdparty/pdns.git/commit
auth: Fix memory leaks in the bind file format parser 14199/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 4 Apr 2024 14:21:52 +0000 (16:21 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 17 May 2024 13:55:04 +0000 (15:55 +0200)
commitf72c8361006e962958bef10ee604b995c97ab81a
tree3a25bde1941141ed8a56533bdde75827aab3af11
parent400e9386c8d277714b045c8a9e882ec8970154c4
auth: Fix memory leaks in the bind file format parser

Some tokens were not properly freed: ACL names and entries, unused
word or quoted string terms. This is limited to the parsing of the
bind file format, zones themselves are fine, so there is no security
impact.
Found by LeakSanitizer over our existing unit tests.

(cherry picked from commit 9a8bd90d2f9beffba267c91b0a9d37aefcc2836e)
pdns/bindparser.yy
pdns/named.conf.parsertest