summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/pixops
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-01-11 23:08:44 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-01-11 23:08:44 +0000
commitdee2b1e0b265d10978327c9b30e3026e1ebfdecf (patch)
tree04e1c735bd33bfd4eda27a9ddc8a07e860922d44 /gdk-pixbuf/pixops
parenta458dd72e50a4b770dd69fbaaa6943753d4b7a24 (diff)
downloadgtk+-dee2b1e0b265d10978327c9b30e3026e1ebfdecf.tar.gz
Fix integer overflow for the values passed to the pixel functions.
Fri Jan 11 18:05:07 2002 Owen Taylor <otaylor@redhat.com> * pixops/pixops.c: Fix integer overflow for the values passed to the pixel functions. (#55148)
Diffstat (limited to 'gdk-pixbuf/pixops')
-rw-r--r--gdk-pixbuf/pixops/pixops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdk-pixbuf/pixops/pixops.c b/gdk-pixbuf/pixops/pixops.c
index a2fcbb08e8..201c17c0e6 100644
--- a/gdk-pixbuf/pixops/pixops.c
+++ b/gdk-pixbuf/pixops/pixops.c
@@ -30,7 +30,7 @@ typedef guchar *(*PixopsLineFunc) (int *weights, int n_x, int n_y,
typedef void (*PixopsPixelFunc) (guchar *dest, int dest_x, int dest_channels, int dest_has_alpha,
int src_has_alpha, int check_size, guint32 color1,
guint32 color2,
- int r, int g, int b, int a);
+ guint r, guint g, guint b, guint a);
static int
get_check_shift (int check_size)
@@ -343,7 +343,7 @@ pixops_composite_color_nearest (guchar *dest_buf,
static void
composite_pixel (guchar *dest, int dest_x, int dest_channels, int dest_has_alpha,
int src_has_alpha, int check_size, guint32 color1, guint32 color2,
- int r, int g, int b, int a)
+ guint r, guint g, guint b, guint a)
{
if (dest_has_alpha)
{
@@ -547,7 +547,7 @@ composite_line_22_4a4_mmx_stub (int *weights, int n_x, int n_y,
static void
composite_pixel_color (guchar *dest, int dest_x, int dest_channels, int dest_has_alpha,
int src_has_alpha, int check_size, guint32 color1, guint32 color2,
- int r, int g, int b, int a)
+ guint r, guint g, guint b, guint a)
{
int dest_r, dest_g, dest_b;
int check_shift = get_check_shift (check_size);
@@ -693,7 +693,7 @@ composite_line_color_22_4a4_mmx_stub (int *weights, int n_x, int n_y,
static void
scale_pixel (guchar *dest, int dest_x, int dest_channels, int dest_has_alpha,
int src_has_alpha, int check_size, guint32 color1, guint32 color2,
- int r, int g, int b, int a)
+ guint r, guint g, guint b, guint a)
{
if (src_has_alpha)
{