Program: 49605
Project: 49605
Buggy source:
/** 
 * returns certificate string
 * @return certificate string
 */
public static X509Certificate genCert(){
  X509Certificate retval=null;
  Security.addProvider(new BouncyCastleProvider());
  RSAPublicKeySpec pubKeySpec=new RSAPublicKeySpec(new BigInteger("String_Node_Str" + "String_Node_Str",16),new BigInteger("String_Node_Str",16));
  RSAPublicKeySpec caPubKeySpec=new RSAPublicKeySpec(new BigInteger("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str",16),new BigInteger("String_Node_Str",16));
  RSAPrivateCrtKeySpec caPrivKeySpec=new RSAPrivateCrtKeySpec(new BigInteger("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str",16),new BigInteger("String_Node_Str",16),new BigInteger("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str",16),new BigInteger("String_Node_Str" + "String_Node_Str" + "String_Node_Str",16),new BigInteger("String_Node_Str" + "String_Node_Str" + "String_Node_Str",16),new BigInteger("String_Node_Str" + "String_Node_Str" + "String_Node_Str",16),new BigInteger("String_Node_Str" + "String_Node_Str" + "String_Node_Str",16),new BigInteger("String_Node_Str" + "String_Node_Str" + "String_Node_Str",16));
  try {
    KeyFactory fact=KeyFactory.getInstance("String_Node_Str","String_Node_Str");
    PrivateKey caPrivKey=fact.generatePrivate(caPrivKeySpec);
    PublicKey caPubKey=fact.generatePublic(caPubKeySpec);
    PublicKey pubKey=fact.generatePublic(pubKeySpec);
    X509Certificate clientCert=createClientCert("String_Node_Str","String_Node_Str",pubKey,caPrivKey,caPubKey);
    retval=clientCert;
  }
 catch (  Exception e) {
    throw new RuntimeException(e);
  }
  return retval;
}

Fixed version (ground truth):
/** 
 * returns certificate string
 * @return certificate string
 */
public static X509Certificate genCert(){
  X509Certificate retval=null;
  Security.addProvider(new BouncyCastleProvider());
  RSAPublicKeySpec pubKeySpec=new RSAPublicKeySpec(new BigInteger("String_Node_Str" + "String_Node_Str" + "String_Node_Str",16),new BigInteger("String_Node_Str",16));
  RSAPublicKeySpec caPubKeySpec=new RSAPublicKeySpec(new BigInteger("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str",16),new BigInteger("String_Node_Str",16));
  RSAPrivateCrtKeySpec caPrivKeySpec=new RSAPrivateCrtKeySpec(new BigInteger("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str",16),new BigInteger("String_Node_Str",16),new BigInteger("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str",16),new BigInteger("String_Node_Str" + "String_Node_Str" + "String_Node_Str",16),new BigInteger("String_Node_Str" + "String_Node_Str" + "String_Node_Str",16),new BigInteger("String_Node_Str" + "String_Node_Str" + "String_Node_Str",16),new BigInteger("String_Node_Str" + "String_Node_Str" + "String_Node_Str",16),new BigInteger("String_Node_Str" + "String_Node_Str" + "String_Node_Str",16));
  try {
    KeyFactory fact=KeyFactory.getInstance("String_Node_Str","String_Node_Str");
    PrivateKey caPrivKey=fact.generatePrivate(caPrivKeySpec);
    PublicKey caPubKey=fact.generatePublic(caPubKeySpec);
    PublicKey pubKey=fact.generatePublic(pubKeySpec);
    X509Certificate clientCert=createClientCert("String_Node_Str","String_Node_Str",pubKey,caPrivKey,caPubKey);
    retval=clientCert;
  }
 catch (  Exception e) {
    throw new RuntimeException(e);
  }
  return retval;
}