Stackoverflow issue in TextFragmentAbsorber

Hello , yesterday we faced into an issue that our product was down.
Eventually after investigate the issue we found that Aspose PDF library throws stackoverflow issue.
I was able to dive into and find a bug there.
Eventually searching with regex find a line with leading NBSP character and TextFragmentAbsorber goes into infinitive loop.
In obfuscated debugging this code looks like that
if (num < 0 && _param0.Length > 1 && char.IsWhiteSpace(_param0[0]))
num = TextFragmentAbsorber.\u0023\u003DzHJpX_qGyGHNHPzVHtg\u003D\u003D(_param0.TrimStart(’ ', ‘\r’, ‘\n’), _param1);
return num;

I mimic what happen inside the code with this simple gist, would it be possible to fix it in upcoming release?
https://gist.github.com/grinay/78d8186f64c7e57cb22f3e8eac8e8d38

@grinaypps

Could you please share the sample code snippet along with a sample PDF document with which we can try to replicate the Exception? We will test the scenario in our environment and address it accordingly.

I’ve provided the exact place in the library and string example in gist. I can’t provide document , this document under NDA.

@grinaypps

The existing code behind the API Classes and method is there for a reason and it is already generating correct results with other PDF files. We cannot just change it without knowing and determining the actual cause of the issue. Please also note that sometimes issues are specifically related to a specific PDF document and we resolve them for only that type of document.

Also, we assure you that your files are secured with us and they are only used for testing purposes. We erase them from our system after the issue is fixed and we never disclose them. We do not provide any separate NDA but it is already a part of our EULA that you agree with while purchasing the API subscription.

Unfortunately this isn’t possible. Thanks for support.

@grinaypps

It’s alright. We will still try to investigate against the provided information. The investigation ticket as PDFNET-52117 has been logged in our issue management system to further analyze this case and we will inform you once it is resolved. Please be patient and give us some time.