http://bugzilla.novell.com/show_bug.cgi?id=575722
http://bugzilla.novell.com/show_bug.cgi?id=575722#c0 Summary: gasnview chokes on CONSTRUCTED OCTET STRING Classification: Mono Product: Mono: Tools Version: 1.2.0 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: tools AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=339949) --> (http://bugzilla.novell.com/attachment.cgi?id=339949) Patch against latest that resolves the issue User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100106 Ubuntu/9.10 (karmic) Firefox/3.5.7 I compiled and installed the latest mono-tools, including asn1view. Running gasnview on one of my certificates printed a stack trace in the main window: System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list. at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at System.Text.StringBuilder.AppendFormat (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at System.Text.StringBuilder.AppendFormat (System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at Mono.Tools.PrettyPrinter.PrintToDo (System.String s, System.Text.StringBuilder sb, Int32 level, Mono.Security.ASN1Element asn) [0x00000] in <filename unknown>:0 at Mono.Tools.PrettyPrinter.PrintOtherData (System.Text.StringBuilder sb, Int32 level, Mono.Security.ASN1Element asn) [0x00000] in <filename unknown>:0 The problem here is straightforward, the AppendFormat call is dodgy. Now, gasnview was printing "UNKNOWN (TODO)" for one of the tags in my certificate. Debugging revealed the tag in question was a constructed octet string. A small modification to the "unknown" test in PrintOtherData was required and now it works fine. I am attaching a diff with the two (one-line) changes. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
