Skip to content
Permalink
Browse files Browse the repository at this point in the history
dither: fix integer multiplication overflow that caused crashes.
  • Loading branch information
samhocevar committed Dec 30, 2018
1 parent 3e52dab commit 1022d97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions caca/dither.c
Expand Up @@ -6,8 +6,8 @@
* This library is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What the Fuck You Want
* to Public License, Version 2, as published by Sam Hocevar. See
* http://www.wtfpl.net/ for more details.
* to Public License, Version 2, as published by the WTFPL Task Force.
* See http://www.wtfpl.net/ for more details.
*/

/*
Expand Down Expand Up @@ -116,7 +116,7 @@ enum color_mode
struct caca_dither
{
int bpp, has_palette, has_alpha;
int w, h, pitch;
size_t w, h, pitch;
int rmask, gmask, bmask, amask;
int rright, gright, bright, aright;
int rleft, gleft, bleft, aleft;
Expand Down

0 comments on commit 1022d97

Please sign in to comment.