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:
Caolán McNamara
2020-04-16 22:24:48 +02:00
parent 4830592b78
commit a435887eaf
+4 -2
View File
@@ -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;