ref: e9181aba2c5594f5fedba649170c6e8efbabdea2
parent: b66330732060af27d0f5414943e1ad378af3d5e3
author: Werner Lemberg <[email protected]>
date: Wed Mar 23 02:58:20 EDT 2016
[raster, smooth] Fix some clang sanitizer runtime issues. * src/raster/ftraster.c (ft_black_reset, ft_black_set_mode, ft_black_render): Harmonize signatures with `ftimage.h'. * src/smooth/ftgrays.c (gray_raster_render, gray_raster_reset): Ditto.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2016-03-23 Werner Lemberg <[email protected]>
+
+ [raster, smooth] Fix some clang sanitizer runtime issues.
+
+ * src/raster/ftraster.c (ft_black_reset, ft_black_set_mode,
+ ft_black_render): Harmonize signatures with `ftimage.h'.
+
+ * src/smooth/ftgrays.c (gray_raster_render, gray_raster_reset):
+ Ditto.
+
2016-03-22 Werner Lemberg <[email protected]>
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Minor.
--- a/src/raster/ftraster.c
+++ b/src/raster/ftraster.c
@@ -3106,9 +3106,9 @@
static void
- ft_black_reset( black_PRaster raster,
- char* pool_base,
- Long pool_size )
+ ft_black_reset( FT_Raster raster,
+ PByte pool_base,
+ ULong pool_size )
{
FT_UNUSED( raster );
FT_UNUSED( pool_base );
@@ -3117,13 +3117,13 @@
static int
- ft_black_set_mode( black_PRaster raster,
- ULong mode,
- const char* palette )
+ ft_black_set_mode( FT_Raster raster,
+ ULong mode,
+ void* args )
{
FT_UNUSED( raster );
FT_UNUSED( mode );
- FT_UNUSED( palette );
+ FT_UNUSED( args );
return 0;
}
@@ -3130,7 +3130,7 @@
static int
- ft_black_render( black_PRaster raster,
+ ft_black_render( FT_Raster raster,
const FT_Raster_Params* params )
{
const FT_Outline* outline = (const FT_Outline*)params->source;
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -2025,7 +2025,7 @@
static int
- gray_raster_render( gray_PRaster raster,
+ gray_raster_render( FT_Raster raster,
const FT_Raster_Params* params )
{
const FT_Outline* outline = (const FT_Outline*)params->source;
@@ -2180,9 +2180,9 @@
static void
- gray_raster_reset( FT_Raster raster,
- char* pool_base,
- long pool_size )
+ gray_raster_reset( FT_Raster raster,
+ unsigned char* pool_base,
+ unsigned long pool_size )
{
FT_UNUSED( raster );
FT_UNUSED( pool_base );