From: Felix Schmidt Date: Mon, 21 Jun 2021 04:37:50 +0000 (+0200) Subject: Fix tinysvcmdns: rr_data_len goes beyond packet buffer X-Git-Tag: 3.3.9~16^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1211%2Fhead;p=thirdparty%2Fshairport-sync.git Fix tinysvcmdns: rr_data_len goes beyond packet buffer --- diff --git a/tinysvcmdns.c b/tinysvcmdns.c index 9e605e07..55e82ad2 100644 --- a/tinysvcmdns.c +++ b/tinysvcmdns.c @@ -735,7 +735,8 @@ static size_t mdns_parse_rr(uint8_t *pkt_buf, size_t pkt_len, size_t off, struct if (name == NULL) goto err; - // parse the MDNS RR section p += label_len(pkt_buf, pkt_len, off); + // parse the MDNS RR section + p += label_len(pkt_buf, pkt_len, off); rr->name = name; rr->type = mdns_read_u16(p);