From 7d79105a2dfe319dbdb7983a8f251d1ca16ef8b8 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 31 Mar 2021 14:25:42 +0300 Subject: [PATCH] Reject reversed code point ranges --- ttf2png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.45.2