From: Mikko Rasa Date: Wed, 31 Mar 2021 11:25:42 +0000 (+0300) Subject: Reject reversed code point ranges X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=7d79105a2dfe319dbdb7983a8f251d1ca16ef8b8;p=ttf2png.git Reject reversed code point ranges --- diff --git a/ttf2png.c b/ttf2png.c index 2783811..d3ea069 100644 --- a/ttf2png.c +++ b/ttf2png.c @@ -348,7 +348,7 @@ void convert_code_point_range(char opt, Range *range) { range->first = value; value = str_to_code_point(ptr+1, &ptr); - if(value>=0 && !*ptr) + if(value>=(int)range->first && !*ptr) { range->last = value; return;