All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: Archie Pusaka <apusaka@google.com>
Cc: linux-bluetooth <linux-bluetooth@vger.kernel.org>,
	CrosBT Upstreaming <chromeos-bluetooth-upstreaming@chromium.org>,
	Archie Pusaka <apusaka@chromium.org>,
	Yun-Hao Chung <howardchung@chromium.org>
Subject: Re: [Bluez PATCH] lib/uuid: Fix string to uuid32 conversion
Date: Mon, 24 May 2021 13:18:19 -0700	[thread overview]
Message-ID: <CABBYNZJ1QuNKh0XOdoMaCKmjsN-6J+iVAg_fy6hFOo+Oxnx-eA@mail.gmail.com> (raw)
In-Reply-To: <CAJQfnxH8p+pffk49LTMN+JR2UvZwoOPTM_Dg44DCSDz3weOYSQ@mail.gmail.com>

Hi Archie,

On Sun, May 23, 2021 at 9:24 AM Archie Pusaka <apusaka@google.com> wrote:
>
> Hi Luiz,
>
> A friendly ping to review this patch. Thanks!
>
> Cheers,
> Archie
>
> On Wed, 19 May 2021 at 16:21, Archie Pusaka <apusaka@google.com> wrote:
> >
> > From: Archie Pusaka <apusaka@chromium.org>
> >
> > Use strtoul to prevent 32 bit overflow
> >
> > Reviewed-by: Yun-Hao Chung <howardchung@chromium.org>
> > ---
> >
> >  lib/uuid.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/lib/uuid.c b/lib/uuid.c
> > index a09321dc6e..3d97dc8359 100644
> > --- a/lib/uuid.c
> > +++ b/lib/uuid.c
> > @@ -209,7 +209,7 @@ static int bt_string_to_uuid32(bt_uuid_t *uuid, const char *string)
> >         uint32_t u32;
> >         char *endptr = NULL;
> >
> > -       u32 = strtol(string, &endptr, 16);
> > +       u32 = strtoul(string, &endptr, 16);
> >         if (endptr && *endptr == '\0') {
> >                 bt_uuid32_create(uuid, u32);
> >                 return 0;
> > --
> > 2.31.1.751.gd2f1c929bd-goog

Applied, thanks.


-- 
Luiz Augusto von Dentz

      reply	other threads:[~2021-05-24 20:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-19  8:21 [Bluez PATCH] lib/uuid: Fix string to uuid32 conversion Archie Pusaka
2021-05-19  8:45 ` [Bluez] " bluez.test.bot
2021-05-23 16:24 ` [Bluez PATCH] " Archie Pusaka
2021-05-24 20:18   ` Luiz Augusto von Dentz [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=CABBYNZJ1QuNKh0XOdoMaCKmjsN-6J+iVAg_fy6hFOo+Oxnx-eA@mail.gmail.com \
    --to=luiz.dentz@gmail.com \
    --cc=apusaka@chromium.org \
    --cc=apusaka@google.com \
    --cc=chromeos-bluetooth-upstreaming@chromium.org \
    --cc=howardchung@chromium.org \
    --cc=linux-bluetooth@vger.kernel.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 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.