From 2854dac459e2733361bba53203ecf8824d59b037 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Wed, 4 Jun 2003 21:13:37 +0000 Subject: [PATCH] Check array bounds, tiny patch from Joe Hildebrand. --- nfkc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfkc.c b/nfkc.c index e471361..11687f7 100644 --- a/nfkc.c +++ b/nfkc.c @@ -307,7 +307,7 @@ combine (unsigned long a, unsigned long b, unsigned long *result) if (index_a >= COMPOSE_FIRST_START && index_a < COMPOSE_FIRST_SINGLE_START && index_b >= COMPOSE_SECOND_START - && index_a < COMPOSE_SECOND_SINGLE_START) + && index_b < COMPOSE_SECOND_SINGLE_START) { unsigned long res = compose_array[index_a - COMPOSE_FIRST_START][index_b - -- 2.11.4.GIT