Branch: Tag:

2012-04-13

2012-04-13 19:06:19 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Image: Fixed one-byte buffer read overrun in phasehv().

phasehv() read one (uninitialized) byte before the source imagebuffer.

5:   */      /* This file is incuded in search.c with the following defines set: - NEIG is 1, zx, zx+1 or zx-1 + NEIG is 1, xz, xz+1 or xz-1   IMAGE_PHASE image_phase(h|v|hv|vh) Name of the function    */   
47:    {\    int i;\    int V,H;\ -  i=y*xs+x;\ +  i=y*xz+x;\    V=thisi[i-(NEIG)].R-thisi[i].R;\    H=thisi[i+(NEIG)].R-thisi[i].R;\    if ((V==0)&&(H==0))\