Message ID | 20210519162046.Bluez.1.Ic61b294b8337c492e9d4eab47d3c5709d8adacbf@changeid (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Luiz Von Dentz |
Headers | show |
Series | [Bluez] lib/uuid: Fix string to uuid32 conversion | expand |
This is automated email and please do not reply to this email! Dear submitter, Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series: PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=484827 ---Test result--- Test Summary: CheckPatch PASS 0.30 seconds GitLint PASS 0.11 seconds Prep - Setup ELL PASS 41.04 seconds Build - Prep PASS 0.10 seconds Build - Configure PASS 7.18 seconds Build - Make PASS 176.76 seconds Make Check PASS 9.02 seconds Make Distcheck PASS 210.36 seconds Build w/ext ELL - Configure PASS 7.24 seconds Build w/ext ELL - Make PASS 166.42 seconds Details ############################## Test: CheckPatch - PASS Desc: Run checkpatch.pl script with rule in .checkpatch.conf ############################## Test: GitLint - PASS Desc: Run gitlint with rule in .gitlint ############################## Test: Prep - Setup ELL - PASS Desc: Clone, build, and install ELL ############################## Test: Build - Prep - PASS Desc: Prepare environment for build ############################## Test: Build - Configure - PASS Desc: Configure the BlueZ source tree ############################## Test: Build - Make - PASS Desc: Build the BlueZ source tree ############################## Test: Make Check - PASS Desc: Run 'make check' ############################## Test: Make Distcheck - PASS Desc: Run distcheck to check the distribution ############################## Test: Build w/ext ELL - Configure - PASS Desc: Configure BlueZ source with '--enable-external-ell' configuration ############################## Test: Build w/ext ELL - Make - PASS Desc: Build BlueZ source with '--enable-external-ell' configuration --- Regards, Linux Bluetooth
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 >
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.
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;