public inbox for gwml@vger.gnuweeb.org
 help / color / mirror / Atom feed
From: Ahmad Gani <reyuki@gnuweeb.org>
To: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Cc: Ahmad Gani <reyuki@gnuweeb.org>,
	GNU/Weeb Mailing List <gwml@vger.gnuweeb.org>
Subject: [PATCH gwproxy v1 0/2] Fix missing validation of restyp in dns
Date: Mon, 28 Jul 2025 23:07:56 +0700	[thread overview]
Message-ID: <20250728160800.95383-1-reyuki@gnuweeb.org> (raw)

The dns test is buggy, when I run make test it always ended up with
EINVAL. And it turned out restyp is not validated in the fetch_addr,
this patch add validation in the initialization stage.

Signed-off-by: Ahmad Gani <reyuki@gnuweeb.org>
---

Ahmad Gani (2):
  dns: add a new restyp GWP_DNS_RESTYP_DEFAULT
  dns: validate restyp on initialization

 src/gwproxy/dns.c | 20 +++++++++++++++++++-
 src/gwproxy/dns.h |  1 +
 2 files changed, 20 insertions(+), 1 deletion(-)


base-commit: ccd2541934c3af56b14bd5bcf7326563d8e2e728
-- 
Ahmad Gani


             reply	other threads:[~2025-07-28 16:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-28 16:07 Ahmad Gani [this message]
2025-07-28 16:07 ` [PATCH gwproxy v1 1/2] dns: add a new restyp GWP_DNS_RESTYP_DEFAULT Ahmad Gani
2025-07-28 16:07 ` [PATCH gwproxy v1 2/2] dns: validate restyp on initialization Ahmad Gani
2025-07-28 16:14 ` [PATCH gwproxy v1 0/2] Fix missing validation of restyp in dns Ammar Faizi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250728160800.95383-1-reyuki@gnuweeb.org \
    --to=reyuki@gnuweeb.org \
    --cc=ammarfaizi2@gnuweeb.org \
    --cc=gwml@vger.gnuweeb.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox