* src/smooth/ftgrays.c (gray_hline): Fix uninitialized access.
This commit is contained in:
parent
5224aae8bb
commit
3b37bfc4b5
|
@ -1,3 +1,7 @@
|
||||||
|
2016-08-10 Peter Klotz <Peter.Klotz@ith-icoserve.com>
|
||||||
|
|
||||||
|
* src/smooth/ftgrays.c (gray_hline): Fix uninitialized access.
|
||||||
|
|
||||||
2016-08-10 Werner Lemberg <wl@gnu.org>
|
2016-08-10 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
[sfnt] Use correct type for `italicAngle' field (#48732).
|
[sfnt] Use correct type for `italicAngle' field (#48732).
|
||||||
|
|
|
@ -1365,10 +1365,10 @@ typedef ptrdiff_t FT_PtrDist;
|
||||||
/* see whether we can add this span to the current list */
|
/* see whether we can add this span to the current list */
|
||||||
count = ras.num_gray_spans;
|
count = ras.num_gray_spans;
|
||||||
span = ras.gray_spans + count - 1;
|
span = ras.gray_spans + count - 1;
|
||||||
if ( span->coverage == coverage &&
|
if ( count > 0 &&
|
||||||
|
span->coverage == coverage &&
|
||||||
span->x + span->len == x &&
|
span->x + span->len == x &&
|
||||||
ras.span_y == y &&
|
ras.span_y == y )
|
||||||
count > 0 )
|
|
||||||
{
|
{
|
||||||
span->len = (unsigned short)( span->len + acount );
|
span->len = (unsigned short)( span->len + acount );
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue