cid#1462267 Infinite loop
since...
commit a2362e0ff5
Date: Wed Apr 15 19:32:09 2020 +0200
loplugin:buriedassign in sfx2..sot
Change-Id: Iabbef1b027cb6bd77b387142df926c5b37858517
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92392
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -726,9 +726,11 @@ struct value
|
||||
if (*p == 'x')
|
||||
{
|
||||
p += 1;
|
||||
i = digit(*p);
|
||||
while (i >= 0 && i <= 15)
|
||||
while (1)
|
||||
{
|
||||
i = digit(*p);
|
||||
if (i < 0 || i > 16)
|
||||
break;
|
||||
p += 1;
|
||||
n <<= 4;
|
||||
n += i;
|
||||
|
||||
Reference in New Issue
Block a user