From 40060b4a4b85b14867003343f64bfd5cd64ea256 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Mon, 22 Mar 2021 16:21:34 +0100 Subject: [PATCH] zoneparser: document not checking syntax (#1245) * zoneparser: document not checking syntax Add a couple of lines that we're not syntax checking. Closes: #948 Signed-off-by: Miek Gieben * Update wording after review. Signed-off-by: Miek Gieben --- scan.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scan.go b/scan.go index 39055bde..57be9882 100644 --- a/scan.go +++ b/scan.go @@ -150,6 +150,9 @@ func ReadRR(r io.Reader, file string) (RR, error) { // The text "; this is comment" is returned from Comment. Comments inside // the RR are returned concatenated along with the RR. Comments on a line // by themselves are discarded. +// +// Callers should not assume all returned data in an Resource Record is +// syntactically correct, e.g. illegal base64 in RRSIGs will be returned as-is. type ZoneParser struct { c *zlexer