All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Pengpeng Hou <pengpeng@iscas.ac.cn>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] w1: validate slave string length before checking separator
Date: Fri, 3 Jul 2026 11:41:44 +0200	[thread overview]
Message-ID: <57635238-d75b-459e-acac-fd3a1d35e5d9@kernel.org> (raw)
In-Reply-To: <2026063007047999.4-ccfa108-0039-w1-validate-slave-string-le-pengpeng@iscas.ac.cn>

On 30/06/2026 08:57, Pengpeng Hou wrote:
> w1_atoreg_num() checks buf[2] for the family/id separator before proving
> the input contains that byte.

And calls sscanf for more... Feels like you are following some AI advice
and do not check the actual code.


Best regards,
Krzysztof

      reply	other threads:[~2026-07-03  9:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-30  6:57 [PATCH] w1: validate slave string length before checking separator Pengpeng Hou
2026-07-03  9:41 ` Krzysztof Kozlowski [this message]

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=57635238-d75b-459e-acac-fd3a1d35e5d9@kernel.org \
    --to=krzk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pengpeng@iscas.ac.cn \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.