<HTML><HEAD><TITLE>Samsung Enterprise Portal mySingle</TITLE>
<META content="text/html; charset=euc-kr" http-equiv=Content-Type>
<STYLE id=mysingle_style>P {
        MARGIN-TOP: 5px; FONT-FAMILY: ±¼¸²Ã¼, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt
}
TD {
        MARGIN-TOP: 5px; FONT-FAMILY: ±¼¸²Ã¼, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt
}
LI {
        MARGIN-TOP: 5px; FONT-FAMILY: ±¼¸²Ã¼, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt
}
BODY {
        LINE-HEIGHT: 1.4; MARGIN: 10px; FONT-FAMILY: ±¼¸²Ã¼, arial; FONT-SIZE: 9pt
}
</STYLE>
<META name=GENERATOR content=ActiveSquare></HEAD>
<BODY>
<META name=GENERATOR content=ActiveSquare>
<P>From d16f50507a96b714b726880ad49c9dbdccbe67f8 Mon Sep 17 00:00:00 2001<BR>From: Seongwon Cho <<A href="mailto:seongwon1.cho@samsung.com">seongwon1.cho@samsung.com</A>><BR>Date: Wed, 29 Feb 2012 18:59:34 +0900<BR>Subject: [PATCH] Array size should be fixed in Mono scan converter</P>
<P> - Crash might be occurred</P>
<P> - In tor scan converter same problem is fixed (e8dd13c8fa39c1e3118a4f197ee8865237be7e09)</P>
<P>Reviewed-by: Zhigang Gong <<A href="mailto:zhigang.gong@linux.intel.com">zhigang.gong@linux.intel.com</A>><BR>---<BR> src/cairo-mono-scan-converter.c | 6 ++++--<BR> 1 files changed, 4 insertions(+), 2 deletions(-)</P>
<P>diff --git a/src/cairo-mono-scan-converter.c b/src/cairo-mono-scan-converter.c<BR>index a617f48..106f801 100644<BR>--- a/src/cairo-mono-scan-converter.c<BR>+++ b/src/cairo-mono-scan-converter.c<BR>@@ -390,13 +390,15 @@ _mono_scan_converter_init(struct mono_scan_converter *c,<BR> int xmax, int ymax)<BR> {<BR> cairo_status_t status;<BR>+ int max_num_spans;<BR> <BR> status = polygon_init (c->polygon, ymin, ymax);<BR> if (unlikely (status))<BR> return status;<BR> <BR>- if (xmax - xmin > ARRAY_LENGTH(c->spans_embedded)) {<BR>- c->spans = _cairo_malloc_ab (xmax - xmin,<BR>+ max_num_spans = xmax - xmin + 1;<BR>+ if (max_num_spans > ARRAY_LENGTH(c->spans_embedded)) {<BR>+ c->spans = _cairo_malloc_ab (max_num_spans,<BR> sizeof (cairo_half_open_span_t));<BR> if (unlikely (c->spans == NULL)) {<BR> polygon_fini (c->polygon);<BR>-- <BR>1.7.5.4</P>
<P> </P></BODY></HTML><img src='http://ext.samsung.net/mailcheck/SeenTimeChecker?do=140664f02b27835fe7929f8f6b8abc6a138c406683c1b188adaab111c2afed39c9e875c24b37381f9701ab9c35be3aa690cdb53386b6029d1b20909a04efd4d2748cfe1d4e847419cf878f9a26ce15a0' border=0 width=0 height=0 style='display:none'>