commit 749b2bf78032b8e273e9266ebd9648fa62ed1135 from: Martijn van Duren date: Mon Mar 28 16:35:16 2022 UTC semicolon is part of qp-section/safe-char. Ignore it if we overflow commit - 8cc3b72a5a1c58f69c9b240a4f93b280304991c3 commit + 749b2bf78032b8e273e9266ebd9648fa62ed1135 blob - e9ad20f09423bd5b3ac7ea33d76951d0109f51a9 blob + c74cabcd629b87e9a58f9a780ea09340636d96ff --- main.c +++ main.c @@ -1249,7 +1249,8 @@ dkim_key_text_parse(struct signature *sig, const char if (n != 0) /* Duplicate tag */ return 0; n = 1; - if (osmtpd_ltok_skip_key_n_tag_value(key, 0) != end) + /* semicolon is part of safe-char */ + if (osmtpd_ltok_skip_key_n_tag_value(key, 0) < end) return 0; key = end; break;