cochran.c:477: possible array index out of range ?

David Binderman dcb314 at hotmail.com
Mon Jan 5 01:41:33 PST 2015


Hello there,

[cochran.c:477]: (style) Array index 'x' is used before limits check.

Source code is

while ((samples[x] & 0x80) == 0 && samples[x] != 0x40 && x < size) {

Suggest sanity check array index before use.

Regards

David Binderman

 		 	   		  


More information about the subsurface mailing list