goto bail;
break;
case FcVStackRange:
- for (i = v->u.range.begin; i <= v->u.range.end; i++)
+ if (v->u.range.begin <= v->u.range.end)
{
- if (!FcBlanksAdd (parse->config->blanks, i))
- goto bail;
+ for (i = v->u.range.begin; i <= v->u.range.end; i++)
+ {
+ if (!FcBlanksAdd (parse->config->blanks, i))
+ goto bail;
+ }
}
break;
default:
n++;
break;
case FcVStackRange:
- for (i = vstack->u.range.begin; i <= vstack->u.range.end; i++)
+ if (vstack->u.range.begin <= vstack->u.range.end)
{
- if (!FcCharSetAddChar (charset, i))
- {
- FcConfigMessage (parse, FcSevereWarning, "invalid character: 0x%04x", i);
- }
- else
- n++;
+ for (i = vstack->u.range.begin; i <= vstack->u.range.end; i++)
+ {
+ if (!FcCharSetAddChar (charset, i))
+ {
+ FcConfigMessage (parse, FcSevereWarning, "invalid character: 0x%04x", i);
+ }
+ else
+ n++;
+ }
}
break;
default: