mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Namhyung Kim <namhyung@kernel.org>
To: acme@kernel.org, Hrishikesh Suresh <hrishikesh123s@gmail.com>
Cc: peterz@infradead.org, mingo@redhat.com, mark.rutland@arm.com,
	 alexander.shishkin@linux.intel.com, jolsa@kernel.org,
	irogers@google.com,  adrian.hunter@intel.com,
	james.clark@linaro.org,  linux-perf-users@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] perf: replace strcpy() with strncpy() in util/jitdump.c
Date: Fri, 21 Nov 2025 12:02:59 -0800	[thread overview]
Message-ID: <176375537924.3973666.8147842755858554191.b4-ty@kernel.org> (raw)
In-Reply-To: <20251120041610.299972-1-hrishikesh123s@gmail.com>

On Wed, 19 Nov 2025 23:16:10 -0500, Hrishikesh Suresh wrote:
> Usage of strcpy() can lead to buffer overflows. Therefore, it has been
> replaced with strncpy(). The output file path is provided as a parameter
> and might be restricted by command-line by default. But this defensive
> patch will prevent any potential overflow, making the code more robust
> against future changes in input handling.
> 
> Testing:
> - ran perf test from tools/perf and did not observe any regression with
>   the earlier code
> 
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung



      reply	other threads:[~2025-11-21 20:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-20  4:16 Hrishikesh Suresh
2025-11-21 20:02 ` Namhyung Kim [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=176375537924.3973666.8147842755858554191.b4-ty@kernel.org \
    --to=namhyung@kernel.org \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=hrishikesh123s@gmail.com \
    --cc=irogers@google.com \
    --cc=james.clark@linaro.org \
    --cc=jolsa@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.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

all inboxes | Powered by JetHome®