From 8967a174cdf351bb962498289545e056cd070445 Mon Sep 17 00:00:00 2001 From: suzuki toshiya Date: Mon, 10 Jan 2011 00:42:22 +0900 Subject: [PATCH] fix a bug to cause OOM --- src/base/ftdbgmem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/ftdbgmem.c b/src/base/ftdbgmem.c index bb04f68e2..1d84aae80 100644 --- a/src/base/ftdbgmem.c +++ b/src/base/ftdbgmem.c @@ -775,10 +775,10 @@ if ( FT_HAS_LIMITER( site ) ) FT_TRACE6((" )\n")); - if ( mem_limit_site_total >= 0 && mem_limit_site_total > req_all ) + if ( mem_limit_site_total >= 0 && mem_limit_site_total < req_all ) exceeds_limit_site_total = TRUE; - if ( mem_limit_site_cur >= 0 && mem_limit_site_cur > req_cur ) + if ( mem_limit_site_cur >= 0 && mem_limit_site_cur < req_cur ) exceeds_limit_site_cur = TRUE; if ( exceeds_limit_site_total || exceeds_limit_site_cur )