[argyllcms] Out of bounds at ccast/filt.c

  • From: Jörg Frings-Fürst <debian@xxxxxxxxxxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Sun, 03 May 2015 12:06:40 +0200

Hi,

I have found some out of bounds errors:

Line 212, 213, 214, 252, 253, 255, 264, 459, 501:


Array index -6 is out of bounds.


For line 212:


[quote]
#define FWIDTH 6
double *filt[2][2] = { { &filt_v[0][0][FWIDTH], &filt_v[0][1][FWIDTH] },
{ &filt_v[1][0][FWIDTH], &filt_v[1][1][FWIDTH] } };


for (j = -FWIDTH; j <= FWIDTH; j++) {
filt[vv][ph][j] = 0.0;
filtx[vv][ph][j] = MX;
filtn[vv][ph][j] = MN;
}
[/quote]


j runs from -6 to 6; &filt_v[0][0][FWIDTH] its only defined from 0 to 5.

CU
Jörg


--
New:
GPG Fingerprint: 63E0 075F C8D4 3ABB 35AB 30EE 09F8 9F3C 8CA1 D25D
GPG key (long) : 09F89F3C8CA1D25D
GPG Key : 8CA1D25D
CAcert Key S/N : 0E:D4:56

Old pgp Key: BE581B6E (revoked since 2014-12-31).

Jörg Frings-Fürst
D-54526 Niederkail

Threema: SYR8SJXB

IRC: j_f-f@xxxxxxxxxxxx
j_f-f@xxxxxxxx

My wish list:
- Please send me a picture from the nature at your home.


Attachment: signature.asc
Description: This is a digitally signed message part

Other related posts:

  • » [argyllcms] Out of bounds at ccast/filt.c - Jörg Frings-Fürst