Program: 30631
Project: 30631
Buggy source:
@Override public void renderItemOverlayIntoGUI(FontRenderer par1FontRenderer,TextureManager par2RenderEngine,ItemStack is,int par4,int par5,String par6Str){
  if (is != null) {
    float ScaleFactor=AEConfig.instance.useTerminalUseLargeFont() ? 0.85f : 0.5f;
    float RScaleFactor=1.0f / ScaleFactor;
    int offset=AEConfig.instance.useTerminalUseLargeFont() ? 0 : -1;
    if (is.isItemDamaged()) {
      int k=(int)Math.round(13.0D - is.getItemDamageForDisplay() * 13.0D / is.getMaxDamage());
      int l=(int)Math.round(255.0D - is.getItemDamageForDisplay() * 255.0D / is.getMaxDamage());
      GL11.glDisable(GL11.GL_LIGHTING);
      GL11.glDisable(GL11.GL_DEPTH_TEST);
      GL11.glDisable(GL11.GL_TEXTURE_2D);
      GL11.glDisable(GL11.GL_BLEND);
      Tessellator tessellator=Tessellator.instance;
      int i1=255 - l << 16 | l << 8;
      int j1=(255 - l) / 4 << 16 | 16128;
      this.renderQuad(tessellator,par4 + 2,par5 + 13,13,2,0);
      this.renderQuad(tessellator,par4 + 2,par5 + 13,12,1,j1);
      this.renderQuad(tessellator,par4 + 2,par5 + 13,k,1,i1);
      GL11.glEnable(GL11.GL_TEXTURE_2D);
      GL11.glEnable(GL11.GL_LIGHTING);
      GL11.glEnable(GL11.GL_DEPTH_TEST);
      GL11.glColor4f(1.0F,1.0F,1.0F,1.0F);
    }
    if (is.stackSize == 0) {
      String var6=AEConfig.instance.useTerminalUseLargeFont() ? "String_Node_Str" : "String_Node_Str";
      GL11.glDisable(GL11.GL_LIGHTING);
      GL11.glDisable(GL11.GL_DEPTH_TEST);
      GL11.glPushMatrix();
      GL11.glScaled(ScaleFactor,ScaleFactor,ScaleFactor);
      int X=(int)(((float)par4 + offset + 16.0f - par1FontRenderer.getStringWidth(var6) * ScaleFactor) * RScaleFactor);
      int Y=(int)(((float)par5 + offset + 16.0f - 7.0f * ScaleFactor) * RScaleFactor);
      par1FontRenderer.drawStringWithShadow(var6,X,Y,16777215);
      GL11.glPopMatrix();
      GL11.glEnable(GL11.GL_LIGHTING);
      GL11.glEnable(GL11.GL_DEPTH_TEST);
    }
    long amount=aestack != null ? aestack.getStackSize() : is.stackSize;
    if (amount > 999999999999L)     amount=999999999999L;
    if (amount != 0) {
      String var6="String_Node_Str" + Math.abs(amount);
      if (AEConfig.instance.useTerminalUseLargeFont()) {
        if (amount > 999999999) {
          var6="String_Node_Str" + (int)Math.floor(amount / 1000000000.0) + "String_Node_Str";
        }
 else         if (amount > 99999999) {
          var6="String_Node_Str" + (int)Math.floor(amount / 100000000.0) + "String_Node_Str";
        }
 else         if (amount > 999999) {
          var6="String_Node_Str" + (int)Math.floor(amount / 1000000.0) + "String_Node_Str";
        }
 else         if (amount > 99999) {
          var6="String_Node_Str" + (int)Math.floor(amount / 100000.0) + "String_Node_Str";
        }
 else         if (amount > 999) {
          var6="String_Node_Str" + (int)Math.floor(amount / 1000.0) + "String_Node_Str";
        }
      }
 else {
        if (amount > 999999999) {
          var6="String_Node_Str" + (int)Math.floor(amount / 1000000000.0) + "String_Node_Str";
        }
 else         if (amount > 999999999) {
          var6="String_Node_Str" + (int)Math.floor(amount / 1000000000.0) + "String_Node_Str";
        }
 else         if (amount > 999999) {
          var6="String_Node_Str" + (int)Math.floor(amount / 1000000.0) + "String_Node_Str";
        }
 else         if (amount > 9999) {
          var6="String_Node_Str" + (int)Math.floor(amount / 1000.0) + "String_Node_Str";
        }
      }
      GL11.glDisable(GL11.GL_LIGHTING);
      GL11.glDisable(GL11.GL_DEPTH_TEST);
      GL11.glPushMatrix();
      GL11.glScaled(ScaleFactor,ScaleFactor,ScaleFactor);
      int X=(int)(((float)par4 + offset + 16.0f - par1FontRenderer.getStringWidth(var6) * ScaleFactor) * RScaleFactor);
      int Y=(int)(((float)par5 + offset + 16.0f - 7.0f * ScaleFactor) * RScaleFactor);
      par1FontRenderer.drawStringWithShadow(var6,X,Y,16777215);
      GL11.glPopMatrix();
      GL11.glEnable(GL11.GL_LIGHTING);
      GL11.glEnable(GL11.GL_DEPTH_TEST);
    }
  }
}

Fixed version (ground truth):
@Override public void renderItemOverlayIntoGUI(FontRenderer par1FontRenderer,TextureManager par2RenderEngine,ItemStack is,int par4,int par5,String par6Str){
  if (is != null) {
    float ScaleFactor=AEConfig.instance.useTerminalUseLargeFont() ? 0.85f : 0.5f;
    float RScaleFactor=1.0f / ScaleFactor;
    int offset=AEConfig.instance.useTerminalUseLargeFont() ? 0 : -1;
    boolean unicodeFlag=par1FontRenderer.getUnicodeFlag();
    par1FontRenderer.setUnicodeFlag(false);
    if (is.isItemDamaged()) {
      int k=(int)Math.round(13.0D - is.getItemDamageForDisplay() * 13.0D / is.getMaxDamage());
      int l=(int)Math.round(255.0D - is.getItemDamageForDisplay() * 255.0D / is.getMaxDamage());
      GL11.glDisable(GL11.GL_LIGHTING);
      GL11.glDisable(GL11.GL_DEPTH_TEST);
      GL11.glDisable(GL11.GL_TEXTURE_2D);
      GL11.glDisable(GL11.GL_BLEND);
      Tessellator tessellator=Tessellator.instance;
      int i1=255 - l << 16 | l << 8;
      int j1=(255 - l) / 4 << 16 | 16128;
      this.renderQuad(tessellator,par4 + 2,par5 + 13,13,2,0);
      this.renderQuad(tessellator,par4 + 2,par5 + 13,12,1,j1);
      this.renderQuad(tessellator,par4 + 2,par5 + 13,k,1,i1);
      GL11.glEnable(GL11.GL_TEXTURE_2D);
      GL11.glEnable(GL11.GL_LIGHTING);
      GL11.glEnable(GL11.GL_DEPTH_TEST);
      GL11.glColor4f(1.0F,1.0F,1.0F,1.0F);
    }
    if (is.stackSize == 0) {
      String var6=AEConfig.instance.useTerminalUseLargeFont() ? "String_Node_Str" : "String_Node_Str";
      GL11.glDisable(GL11.GL_LIGHTING);
      GL11.glDisable(GL11.GL_DEPTH_TEST);
      GL11.glPushMatrix();
      GL11.glScaled(ScaleFactor,ScaleFactor,ScaleFactor);
      int X=(int)(((float)par4 + offset + 16.0f - par1FontRenderer.getStringWidth(var6) * ScaleFactor) * RScaleFactor);
      int Y=(int)(((float)par5 + offset + 16.0f - 7.0f * ScaleFactor) * RScaleFactor);
      par1FontRenderer.drawStringWithShadow(var6,X,Y,16777215);
      GL11.glPopMatrix();
      GL11.glEnable(GL11.GL_LIGHTING);
      GL11.glEnable(GL11.GL_DEPTH_TEST);
    }
    long amount=aestack != null ? aestack.getStackSize() : is.stackSize;
    if (amount > 999999999999L)     amount=999999999999L;
    if (amount != 0) {
      String var6="String_Node_Str" + Math.abs(amount);
      if (AEConfig.instance.useTerminalUseLargeFont()) {
        if (amount > 999999999) {
          var6="String_Node_Str" + (int)Math.floor(amount / 1000000000.0) + "String_Node_Str";
        }
 else         if (amount > 99999999) {
          var6="String_Node_Str" + (int)Math.floor(amount / 100000000.0) + "String_Node_Str";
        }
 else         if (amount > 999999) {
          var6="String_Node_Str" + (int)Math.floor(amount / 1000000.0) + "String_Node_Str";
        }
 else         if (amount > 99999) {
          var6="String_Node_Str" + (int)Math.floor(amount / 100000.0) + "String_Node_Str";
        }
 else         if (amount > 999) {
          var6="String_Node_Str" + (int)Math.floor(amount / 1000.0) + "String_Node_Str";
        }
      }
 else {
        if (amount > 999999999) {
          var6="String_Node_Str" + (int)Math.floor(amount / 1000000000.0) + "String_Node_Str";
        }
 else         if (amount > 999999999) {
          var6="String_Node_Str" + (int)Math.floor(amount / 1000000000.0) + "String_Node_Str";
        }
 else         if (amount > 999999) {
          var6="String_Node_Str" + (int)Math.floor(amount / 1000000.0) + "String_Node_Str";
        }
 else         if (amount > 9999) {
          var6="String_Node_Str" + (int)Math.floor(amount / 1000.0) + "String_Node_Str";
        }
      }
      GL11.glDisable(GL11.GL_LIGHTING);
      GL11.glDisable(GL11.GL_DEPTH_TEST);
      GL11.glPushMatrix();
      GL11.glScaled(ScaleFactor,ScaleFactor,ScaleFactor);
      int X=(int)(((float)par4 + offset + 16.0f - par1FontRenderer.getStringWidth(var6) * ScaleFactor) * RScaleFactor);
      int Y=(int)(((float)par5 + offset + 16.0f - 7.0f * ScaleFactor) * RScaleFactor);
      par1FontRenderer.drawStringWithShadow(var6,X,Y,16777215);
      GL11.glPopMatrix();
      GL11.glEnable(GL11.GL_LIGHTING);
      GL11.glEnable(GL11.GL_DEPTH_TEST);
    }
    par1FontRenderer.setUnicodeFlag(unicodeFlag);
  }
}