Re: [patch] fix invalid indexing in mice.c / gunze_calib[]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Some time to do patches today..

[x] applied, in git*

Nico

* http://linux.schottelius.org/git/

Mike Frysinger [Tue, May 03, 2005 at 10:05:13PM -0400]:
> this one is from Fedora ...
> 
> gunze_calib is declared as int[4], so referring to idx #4 is
> obviously a bad idea :)
> 
> --- gpm-1.20.1/src/mice.c
> +++ gpm-1.20.1/src/mice.c
> @@ -2112,7 +2112,7 @@
>        for (i=0; i<4; i++)
>           if (gunze_calib[i] & ~1023) calibok = 0;
>        if (gunze_calib[0] == gunze_calib[2]) calibok = 0;
> -      if (gunze_calib[1] == gunze_calib[4]) calibok = 0;
> +      if (gunze_calib[1] == gunze_calib[3]) calibok = 0;
>        fclose(f);
>     }
>     if (!calibok) {
> 
> -mike
> _______________________________________________
> gpm mailing list
> gpm@xxxxxxxxxxxxxx
> http://lists.linux.it/listinfo/gpm
> 

-- 
Latest project: cconfig (http://nico.schotteli.us/papers/linux/cconfig/)
Open Source nutures open minds and free, creative developers.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
gpm mailing list
gpm@xxxxxxxxxxxxxx
http://lists.linux.it/listinfo/gpm

[Index of Archives]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Gimp]     [Yosemite News]