crypto/des/qud_cksm.c:133: error: BUFFER_OVERRUN_L1
  Offset: [1, +oo] Size: 1.
Showing all 5 steps of the trace


crypto/des/qud_cksm.c:76:1: <Length trace>
74.   #define NOISE	((DES_LONG)83653421L)
75.   
76. > DES_LONG DES_quad_cksum(const unsigned char *input, DES_cblock output[],
77.   	     long length, int out_count, DES_cblock *seed)
78.   	{

crypto/des/qud_cksm.c:76:1: Parameter `(*output)[*]`
74.   #define NOISE	((DES_LONG)83653421L)
75.   
76. > DES_LONG DES_quad_cksum(const unsigned char *input, DES_cblock output[],
77.   	     long length, int out_count, DES_cblock *seed)
78.   	{

crypto/des/qud_cksm.c:93:2: Assignment
91.   	lp = (struct lp_st *) &(output[0])[0];
92.   #else
93.   	lp = (DES_LONG *) &(output[0])[0];
       ^
94.   #endif
95.   

crypto/des/qud_cksm.c:132:5: Assignment
130.   			lp++;
131.   #else
132.   			*lp++ = z0;
           ^
133.   			*lp++ = z1;
134.   #endif

crypto/des/qud_cksm.c:133:4: Array access: Offset: [1, +oo] Size: 1
131.   #else
132.   			*lp++ = z0;
133.   			*lp++ = z1;
          ^
134.   #endif
135.   			}

DES_LONG DES_quad_cksum(const unsigned char *input, DES_cblock output[],
	     long length, int out_count, DES_cblock *seed)
	{
	DES_LONG z0,z1,t0,t1;
	int i;
	long l;
	const unsigned char *cp;
#ifdef _CRAY
	struct lp_st { int a:32; int b:32; } *lp;
#else
	DES_LONG *lp;
#endif
	if (out_count < 1) out_count=1;
#ifdef _CRAY
	lp = (struct lp_st *) &(output[0])[0];
#else
	lp = (DES_LONG *) &(output[0])[0];
#endif
	z0=Q_B0((*seed)[0])|Q_B1((*seed)[1])|Q_B2((*seed)[2])|Q_B3((*seed)[3]);
	z1=Q_B0((*seed)[4])|Q_B1((*seed)[5])|Q_B2((*seed)[6])|Q_B3((*seed)[7]);
	for (i=0; ((i<4)&&(i<out_count)); i++)
		{
		cp=input;
		l=length;
		while (l > 0)
			{
			if (l > 1)
				{
				t0= (DES_LONG)(*(cp++));
				t0|=(DES_LONG)Q_B1(*(cp++));
				l--;
				}
			else
				t0= (DES_LONG)(*(cp++));
			l--;
			t0+=z0;
			t0&=0xffffffffL;
			t1=z1;
			z0=((((t0*t0)&0xffffffffL)+((t1*t1)&0xffffffffL))
				&0xffffffffL)%0x7fffffffL;
			z1=((t0*((t1+NOISE)&0xffffffffL))&0xffffffffL)%0x7fffffffL;
			}
		if (lp != NULL)
			{
#ifdef _CRAY
			(*lp).a = z0;
			(*lp).b = z1;
			lp++;
#else
			*lp++ = z0;
			*lp++ = z1;
#endif
			}
		}
	return(z0);
	}
['DES_LONG DES_quad_cksum(const unsigned char *input, DES_cblock output[],\n\t     long length, int out_count, DES_cblock *seed)\n\t{\n\tDES_LONG z0,z1,t0,t1;\n\tint i;\n\tlong l;\n\tconst unsigned char *cp;\n#ifdef _CRAY\n\tstruct lp_st { int a:32; int b:32; } *lp;\n#else\n\tDES_LONG *lp;\n#endif\n\tif (out_count < 1) out_count=1;\n#ifdef _CRAY\n\tlp = (struct lp_st *) &(output[0])[0];\n#else\n\tlp = (DES_LONG *) &(output[0])[0];\n#endif\n\tz0=Q_B0((*seed)[0])|Q_B1((*seed)[1])|Q_B2((*seed)[2])|Q_B3((*seed)[3]);\n\tz1=Q_B0((*seed)[4])|Q_B1((*seed)[5])|Q_B2((*seed)[6])|Q_B3((*seed)[7]);\n\tfor (i=0; ((i<4)&&(i<out_count)); i++)\n\t\t{\n\t\tcp=input;\n\t\tl=length;\n\t\twhile (l > 0)\n\t\t\t{\n\t\t\tif (l > 1)\n\t\t\t\t{\n\t\t\t\tt0= (DES_LONG)(*(cp++));\n\t\t\t\tt0|=(DES_LONG)Q_B1(*(cp++));\n\t\t\t\tl--;\n\t\t\t\t}\n\t\t\telse\n\t\t\t\tt0= (DES_LONG)(*(cp++));\n\t\t\tl--;\n\t\t\tt0+=z0;\n\t\t\tt0&=0xffffffffL;\n\t\t\tt1=z1;\n\t\t\tz0=((((t0*t0)&0xffffffffL)+((t1*t1)&0xffffffffL))\n\t\t\t\t&0xffffffffL)%0x7fffffffL;\n\t\t\tz1=((t0*((t1+NOISE)&0xffffffffL))&0xffffffffL)%0x7fffffffL;\n\t\t\t}\n\t\tif (lp != NULL)\n\t\t\t{\n#ifdef _CRAY\n\t\t\t(*lp).a = z0;\n\t\t\t(*lp).b = z1;\n\t\t\tlp++;\n#else\n\t\t\t*lp++ = z0;\n\t\t\t*lp++ = z1;\n#endif\n\t\t\t}\n\t\t}\n\treturn(z0);\n\t}']