Allow the special ECMA key when parsing assembly names (bug#660570).
authorPaolo Molaro <lupus@oddwiz.org>
Mon, 3 Jan 2011 14:35:48 +0000 (15:35 +0100)
committerPaolo Molaro <lupus@oddwiz.org>
Mon, 3 Jan 2011 15:01:09 +0000 (16:01 +0100)
mono/metadata/assembly.c

index 9474f0d0f1b2115ba4d80b826a7be837105819aa..de79611af8d680f0e70e1a3119259063d6dda512 100644 (file)
@@ -1647,7 +1647,15 @@ parse_public_key (const gchar *key, gchar** pubkey)
        keylen = strlen (key) >> 1;
        if (keylen < 1)
                return FALSE;
-       
+
+       /* allow the ECMA standard key */
+       if (strcmp (key, "00000000000000000400000000000000") == 0) {
+               if (pubkey) {
+                       arr = g_strdup ("b77a5c561934e089");
+                       *pubkey = arr;
+               }
+               return TRUE;
+       }
        val = g_ascii_xdigit_value (key [0]) << 4;
        val |= g_ascii_xdigit_value (key [1]);
        switch (val) {