crypto/des/des.c:862: error: INTEGER_OVERFLOW_L1
  (10 - 32):unsigned32.
Showing all 1 steps of the trace


crypto/des/des.c:862:2: Binary operation: (10 - 32):unsigned32
860.   	DES_LONG l;
861.   	DES_LONG w,x,y,z;
862.   	unsigned int blank=(unsigned int)'\n'-' ';
        ^
863.   
864.   	for (j=0; j<num; )

int uudecode(unsigned char *in, int num, unsigned char *out)
	{
	int j,i,k;
	unsigned int n=0,space=0;
	DES_LONG l;
	DES_LONG w,x,y,z;
	unsigned int blank=(unsigned int)'\n'-' ';
	for (j=0; j<num; )
		{
		n= *(in++)-' ';
		if (n == blank)
			{
			n=0;
			in--;
			}
		if (n > 60)
			{
			fprintf(stderr,"uuencoded line length too long\n");
			return(-1);
			}
		j++;
		for (i=0; i<n; j+=4,i+=3)
			{
			if (space)
				{
				w=x=y=z=0;
				}
			else
				{
				w= *(in++)-' ';
				x= *(in++)-' ';
				y= *(in++)-' ';
				z= *(in++)-' ';
				}
			if ((w > 63) || (x > 63) || (y > 63) || (z > 63))
				{
				k=0;
				if (w == blank) k=1;
				if (x == blank) k=2;
				if (y == blank) k=3;
				if (z == blank) k=4;
				space=1;
				switch (k) {
				case 1:	w=0; in--;
				case 2: x=0; in--;
				case 3: y=0; in--;
				case 4: z=0; in--;
					break;
				case 0:
					space=0;
					fprintf(stderr,"bad uuencoded data values\n");
					w=x=y=z=0;
					return(-1);
					break;
					}
				}
			l=(w<<18)|(x<<12)|(y<< 6)|(z    );
			l2ccc(l,out);
			}
		if (*(in++) != '\n')
			{
			fprintf(stderr,"missing nl in uuencoded line\n");
			w=x=y=z=0;
			return(-1);
			}
		j++;
		}
	*out='\0';
	w=x=y=z=0;
	return(n);
	}
['int uudecode(unsigned char *in, int num, unsigned char *out)\n\t{\n\tint j,i,k;\n\tunsigned int n=0,space=0;\n\tDES_LONG l;\n\tDES_LONG w,x,y,z;\n\tunsigned int blank=(unsigned int)\'\\n\'-\' \';\n\tfor (j=0; j<num; )\n\t\t{\n\t\tn= *(in++)-\' \';\n\t\tif (n == blank)\n\t\t\t{\n\t\t\tn=0;\n\t\t\tin--;\n\t\t\t}\n\t\tif (n > 60)\n\t\t\t{\n\t\t\tfprintf(stderr,"uuencoded line length too long\\n");\n\t\t\treturn(-1);\n\t\t\t}\n\t\tj++;\n\t\tfor (i=0; i<n; j+=4,i+=3)\n\t\t\t{\n\t\t\tif (space)\n\t\t\t\t{\n\t\t\t\tw=x=y=z=0;\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tw= *(in++)-\' \';\n\t\t\t\tx= *(in++)-\' \';\n\t\t\t\ty= *(in++)-\' \';\n\t\t\t\tz= *(in++)-\' \';\n\t\t\t\t}\n\t\t\tif ((w > 63) || (x > 63) || (y > 63) || (z > 63))\n\t\t\t\t{\n\t\t\t\tk=0;\n\t\t\t\tif (w == blank) k=1;\n\t\t\t\tif (x == blank) k=2;\n\t\t\t\tif (y == blank) k=3;\n\t\t\t\tif (z == blank) k=4;\n\t\t\t\tspace=1;\n\t\t\t\tswitch (k) {\n\t\t\t\tcase 1:\tw=0; in--;\n\t\t\t\tcase 2: x=0; in--;\n\t\t\t\tcase 3: y=0; in--;\n\t\t\t\tcase 4: z=0; in--;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 0:\n\t\t\t\t\tspace=0;\n\t\t\t\t\tfprintf(stderr,"bad uuencoded data values\\n");\n\t\t\t\t\tw=x=y=z=0;\n\t\t\t\t\treturn(-1);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tl=(w<<18)|(x<<12)|(y<< 6)|(z    );\n\t\t\tl2ccc(l,out);\n\t\t\t}\n\t\tif (*(in++) != \'\\n\')\n\t\t\t{\n\t\t\tfprintf(stderr,"missing nl in uuencoded line\\n");\n\t\t\tw=x=y=z=0;\n\t\t\treturn(-1);\n\t\t\t}\n\t\tj++;\n\t\t}\n\t*out=\'\\0\';\n\tw=x=y=z=0;\n\treturn(n);\n\t}']