Overflow URL UInt32

When parsing a URL in a link that is a large numeric Aspose HTML crashes with an overflow exception.

        public void OverflowUrlUInt32()
        {
            const string html = "<html><body><a href='http://77777777777'>Test</a></body></html>";

            using (var document = new Aspose.Html.HTMLDocument(html, "."))
                Aspose.Html.Converters.Converter.ConvertHTML(document, new PdfSaveOptions(), "out.pdf");
        }

@GrantWalker

Can you please share the screenshot of the issue with the stack trace information that you see at your end? This would help us in investigating the issue accordingly.

This is the stack trace from the recent release Aspose.HTML 24.6:

System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.OverflowException: Value was either too large or too small for a UInt32.
    at System.ParseNumbers.StringToInt(String s, Int32 radix, Int32 flags, Int32* currPos)
   at System.Convert.ToUInt32(String value, Int32 fromBase)
   at    .(String , Boolean& )
   at    .(String )
   at    .(String , Boolean )
   at    .     (    ,     )
   at    .(String ,     , Encoding ,     ,     )
   at Aspose.Html.Url..ctor(String url, String baseUrl)
   at Aspose.Html.HTMLAnchorElement.()
   at Aspose.Html.HTMLAnchorElement.f8hsggjna863vcr32wwt5v5publwm8m2  (QualifiedName ,    ,    ,    )
   at    .( )
   at ​  .     (    ,     )
   at    .     (    )
   at    .     (    )
   at    ..()
   at ​​ . ​   (    )
   at    .(    )
   at    ..     ()
--- End of inner exception stack trace ---
    at  ​ .(Int32 , CancellationToken )
   at    ..()
   at    .     ()
--- End of inner exception stack trace ---
    at    .(Int32 , CancellationToken )
   at Aspose.Html.HTMLDocument..ctor(String content, String baseUri)
   at UnitTest.UnitTest1.OverflowUrlUInt32() in C:\IDS\Projects\HtmlTest\UnitTest\UnitTest1.cs:line 94

@GrantWalker

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): HTMLNET-5605

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.