Program: 154033
Project: 154033
Buggy source:
/** 
 * Performs the "Warp" operation on a rectangular region of the same.
 */
protected void computeRect(Raster[] sources,WritableRaster dest,Rectangle destRect){
  Raster source=sources[0];
  int formatTag=MediaLibAccessor.findCompatibleTag(sources,dest);
  MediaLibAccessor srcMA=new MediaLibAccessor(source,source.getBounds(),formatTag);
  MediaLibAccessor dstMA=new MediaLibAccessor(dest,destRect,formatTag);
  mediaLibImage[] srcMLI=srcMA.getMediaLibImages();
  mediaLibImage[] dstMLI=dstMA.getMediaLibImages();
switch (dstMA.getDataType()) {
case DataBuffer.TYPE_BYTE:
case DataBuffer.TYPE_USHORT:
case DataBuffer.TYPE_SHORT:
case DataBuffer.TYPE_INT:
    if (setBackground)     for (int i=0; i < dstMLI.length; i++) {
      Image.PolynomialWarp2(dstMLI[i],srcMLI[i],xCoeffs,yCoeffs,destRect.x,destRect.y,source.getMinX(),source.getMinY(),preScaleX,preScaleY,postScaleX,postScaleY,filter,Constants.MLIB_EDGE_DST_NO_WRITE,intBackgroundValues);
    }
 else     for (int i=0; i < dstMLI.length; i++) {
      Image.PolynomialWarp(dstMLI[i],srcMLI[i],xCoeffs,yCoeffs,destRect.x,destRect.y,source.getMinX(),source.getMinY(),preScaleX,preScaleY,postScaleX,postScaleY,filter,Constants.MLIB_EDGE_DST_NO_WRITE);
    }
  break;
case DataBuffer.TYPE_FLOAT:
case DataBuffer.TYPE_DOUBLE:
if (setBackground) for (int i=0; i < dstMLI.length; i++) {
  Image.PolynomialWarp2_Fp(dstMLI[i],srcMLI[i],xCoeffs,yCoeffs,destRect.x,destRect.y,source.getMinX(),source.getMinY(),preScaleX,preScaleY,postScaleX,postScaleY,filter,Constants.MLIB_EDGE_DST_NO_WRITE,backgroundValues);
}
 else for (int i=0; i < dstMLI.length; i++) {
  Image.PolynomialWarp_Fp(dstMLI[i],srcMLI[i],xCoeffs,yCoeffs,destRect.x,destRect.y,source.getMinX(),source.getMinY(),preScaleX,preScaleY,postScaleX,postScaleY,filter,Constants.MLIB_EDGE_DST_NO_WRITE);
}
break;
default :
throw new RuntimeException(JaiI18N.getString("String_Node_Str"));
}
if (dstMA.isDataCopy()) {
dstMA.clampDataArrays();
dstMA.copyDataToRaster();
}
}

Fixed version (ground truth):
/** 
 * Performs the "Warp" operation on a rectangular region of the same.
 */
protected void computeRect(Raster[] sources,WritableRaster dest,Rectangle destRect){
  Raster source=sources[0];
  int formatTag=MediaLibAccessor.findCompatibleTag(sources,dest);
  MediaLibAccessor srcMA=new MediaLibAccessor(source,source.getBounds(),formatTag);
  MediaLibAccessor dstMA=new MediaLibAccessor(dest,destRect,formatTag);
  mediaLibImage[] srcMLI=srcMA.getMediaLibImages();
  mediaLibImage[] dstMLI=dstMA.getMediaLibImages();
switch (dstMA.getDataType()) {
case DataBuffer.TYPE_BYTE:
case DataBuffer.TYPE_USHORT:
case DataBuffer.TYPE_SHORT:
case DataBuffer.TYPE_INT:
    if (setBackground)     for (int i=0; i < dstMLI.length; i++) {
      Image.PolynomialWarp2(dstMLI[i],srcMLI[i],xCoeffs,yCoeffs,destRect.x,destRect.y,source.getMinX(),source.getMinY(),preScaleX,preScaleY,postScaleX,postScaleY,filter,Constants.MLIB_EDGE_DST_NO_WRITE,intBackgroundValues);
    }
 else     for (int i=0; i < dstMLI.length; i++) {
      Image.PolynomialWarp(dstMLI[i],srcMLI[i],xCoeffs,yCoeffs,destRect.x,destRect.y,source.getMinX(),source.getMinY(),preScaleX,preScaleY,postScaleX,postScaleY,filter,Constants.MLIB_EDGE_DST_NO_WRITE);
      MlibUtils.clampImage(dstMLI[i],getColorModel());
    }
  break;
case DataBuffer.TYPE_FLOAT:
case DataBuffer.TYPE_DOUBLE:
if (setBackground) for (int i=0; i < dstMLI.length; i++) {
  Image.PolynomialWarp2_Fp(dstMLI[i],srcMLI[i],xCoeffs,yCoeffs,destRect.x,destRect.y,source.getMinX(),source.getMinY(),preScaleX,preScaleY,postScaleX,postScaleY,filter,Constants.MLIB_EDGE_DST_NO_WRITE,backgroundValues);
}
 else for (int i=0; i < dstMLI.length; i++) {
  Image.PolynomialWarp_Fp(dstMLI[i],srcMLI[i],xCoeffs,yCoeffs,destRect.x,destRect.y,source.getMinX(),source.getMinY(),preScaleX,preScaleY,postScaleX,postScaleY,filter,Constants.MLIB_EDGE_DST_NO_WRITE);
}
break;
default :
throw new RuntimeException(JaiI18N.getString("String_Node_Str"));
}
if (dstMA.isDataCopy()) {
dstMA.clampDataArrays();
dstMA.copyDataToRaster();
}
}