Program: 150595
Project: 150595
Buggy source:
public static InterleavedF32 yuvToInterleavedRgbF32(Image yuv,InterleavedF32 output,byte work[]){
  int width=yuv.getWidth();
  int height=yuv.getHeight();
  if (output != null) {
    output.setNumberOfBands(3);
    output.reshape(width,height);
  }
 else {
    output=new InterleavedF32(width,height,3);
  }
  Image.Plane planes[]=yuv.getPlanes();
  int workLength=planes[0].getRowStride() + planes[1].getRowStride() + planes[2].getRowStride();
  if (work.length < workLength)   throw new IllegalArgumentException("String_Node_Str" + workLength);
  ByteBuffer bufferY=planes[0].getBuffer();
  ByteBuffer bufferU=planes[2].getBuffer();
  ByteBuffer bufferV=planes[1].getBuffer();
  bufferY.position(0);
  bufferU.position(0);
  bufferV.position(0);
  int strideY=planes[0].getRowStride();
  int strideU=planes[1].getRowStride();
  int strideV=planes[2].getRowStride();
  int offsetU=strideY;
  int offsetV=strideY + offsetU;
  int stridePixelUV=planes[1].getPixelStride();
  for (int y=0, indexOut=0; y < height; y++) {
    bufferY.get(work,0,strideY);
    if (y % stridePixelUV == 0) {
      bufferU.get(work,offsetU,Math.min(bufferU.remaining(),strideU));
      bufferV.get(work,offsetV,Math.min(bufferV.remaining(),strideV));
    }
    int indexY=0;
    int indexU=offsetU;
    int indexV=offsetV;
    for (int x=0; x < width; x++, indexY++) {
      int Y=1191 * ((work[indexY] & 0xFF) - 16);
      int CR=(work[indexU] & 0xFF) - 128;
      int CB=(work[indexV] & 0xFF) - 128;
      int stepUV=stridePixelUV * (((x + stridePixelUV - 1) % stridePixelUV) ^ 1);
      indexU+=stepUV;
      indexV+=stepUV;
      Y=((Y >>> 31) ^ 1) * Y;
      int r=(Y + 1836 * CR) >> 10;
      int g=(Y - 547 * CR - 218 * CB) >> 10;
      int b=(Y + 2165 * CB) >> 10;
      r*=((r >>> 31) ^ 1);
      g*=((g >>> 31) ^ 1);
      b*=((b >>> 31) ^ 1);
      if (r > 255)       r=255;
      if (g > 255)       g=255;
      if (b > 255)       b=255;
      output.data[indexOut++]=r;
      output.data[indexOut++]=g;
      output.data[indexOut++]=b;
    }
  }
  return output;
}

Fixed version (ground truth):
public static InterleavedF32 yuvToInterleavedRgbF32(Image yuv,InterleavedF32 output,byte work[]){
  int width=yuv.getWidth();
  int height=yuv.getHeight();
  if (output != null) {
    output.setNumberOfBands(3);
    output.reshape(width,height);
  }
 else {
    output=new InterleavedF32(width,height,3);
  }
  Image.Plane planes[]=yuv.getPlanes();
  int strideY=planes[0].getRowStride();
  int strideU=planes[2].getRowStride();
  int strideV=planes[1].getRowStride();
  int workLength=strideY + strideU + strideV;
  if (work.length < workLength)   throw new IllegalArgumentException("String_Node_Str" + workLength);
  ByteBuffer bufferY=planes[0].getBuffer();
  ByteBuffer bufferU=planes[2].getBuffer();
  ByteBuffer bufferV=planes[1].getBuffer();
  bufferY.position(0);
  bufferU.position(0);
  bufferV.position(0);
  int offsetU=strideY;
  int offsetV=strideY + strideU;
  int stridePixelUV=planes[1].getPixelStride();
  for (int y=0, indexOut=0; y < height; y++) {
    bufferY.get(work,0,strideY);
    if (y % stridePixelUV == 0) {
      bufferU.get(work,offsetU,Math.min(bufferU.remaining(),strideU));
      bufferV.get(work,offsetV,Math.min(bufferV.remaining(),strideV));
    }
    int indexY=0;
    int indexU=offsetU;
    int indexV=offsetV;
    for (int x=0; x < width; x++, indexY++) {
      int Y=1191 * ((work[indexY] & 0xFF) - 16);
      int CR=(work[indexU] & 0xFF) - 128;
      int CB=(work[indexV] & 0xFF) - 128;
      int stepUV=stridePixelUV * (((x + stridePixelUV - 1) % stridePixelUV) ^ 1);
      indexU+=stepUV;
      indexV+=stepUV;
      Y=((Y >>> 31) ^ 1) * Y;
      int r=(Y + 1836 * CR) >> 10;
      int g=(Y - 547 * CR - 218 * CB) >> 10;
      int b=(Y + 2165 * CB) >> 10;
      r*=((r >>> 31) ^ 1);
      g*=((g >>> 31) ^ 1);
      b*=((b >>> 31) ^ 1);
      if (r > 255)       r=255;
      if (g > 255)       g=255;
      if (b > 255)       b=255;
      output.data[indexOut++]=r;
      output.data[indexOut++]=g;
      output.data[indexOut++]=b;
    }
  }
  return output;
}