From: David Marchand <david.marchand@redhat.com>
To: Conor Fogarty <conor.fogarty@intel.com>
Cc: dev@dpdk.org, pablo.de.lara.guarch@intel.com
Subject: Re: [PATCH] hash: fix segfault by adding param name NULL check
Date: Fri, 14 Jun 2024 15:47:40 +0200 [thread overview]
Message-ID: <CAJFAV8zJr1CV+4eRoe38t3Hbf-j=4=eSJYxDfYTr1N5c+LMpdg@mail.gmail.com> (raw)
In-Reply-To: <20230706152626.476775-1-conor.fogarty@intel.com>
On Thu, Jul 6, 2023 at 5:26 PM Conor Fogarty <conor.fogarty@intel.com> wrote:
>
> Add NULL pointer check to params->name, which is later
> copied into the hash datastructure. Without this check
> the code segfaults on the strlcpy() of a NULL pointer.
>
> Fixes: 48a399119619 ("hash: replace with cuckoo hash implementation")
Cc: stable@dpdk.org
>
> Signed-off-by: Conor Fogarty <conor.fogarty@intel.com>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
Applied, thanks.
--
David Marchand
prev parent reply other threads:[~2024-06-14 13:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-06 15:26 Conor Fogarty
2024-03-01 17:16 ` Vladimir Medvedkin
2024-06-14 13:47 ` David Marchand [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='CAJFAV8zJr1CV+4eRoe38t3Hbf-j=4=eSJYxDfYTr1N5c+LMpdg@mail.gmail.com' \
--to=david.marchand@redhat.com \
--cc=conor.fogarty@intel.com \
--cc=dev@dpdk.org \
--cc=pablo.de.lara.guarch@intel.com \
/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;
as well as URLs for NNTP newsgroup(s).