Skip to content

Instantly share code, notes, and snippets.

@Hexa
Created September 24, 2011 20:13
Show Gist options
  • Save Hexa/1239801 to your computer and use it in GitHub Desktop.
Save Hexa/1239801 to your computer and use it in GitHub Desktop.
ruby 1.9.3 rc1 の OpenSSL::ASN1 の(たぶん)バグ
diff --git a/ext/openssl/ossl_asn1.c b/ext/openssl/ossl_asn1.c
index fe7256a..b64227a 100644
--- a/ext/openssl/ossl_asn1.c
+++ b/ext/openssl/ossl_asn1.c
@@ -877,7 +877,7 @@ int_ossl_asn1_decode0_cons(unsigned char **pp, long max_len,
}
}
- if (tc == sUNIVERSAL && (tag == V_ASN1_SEQUENCE || V_ASN1_SET)) {
+ if (tc == sUNIVERSAL && (tag == V_ASN1_SEQUENCE || tag == V_ASN1_SET)) {
VALUE args[4];
VALUE klass = *ossl_asn1_info[tag].klass;
if (infinite && tag != V_ASN1_SEQUENCE && tag != V_ASN1_SET) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment