int len34 = len * 3 / 4;
int len43 = len * 4 / 3;
len * 3 or len * 4 may overflow 32 bit integer and compute an incorrect array size.
int len34 = (int) (((long) len) * 3 / 4);
long len43 = ((long) len) * 4 / 3;
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.