Hi!
Thank you for your work, I tried to play with it and figured out that there is an issue with the long string.
Basically, it doesn't read fully long string and after that, all strings are messed...
Not to throw shade, just wishing that somebody here can understand. Whenever an input is reasonably long, an analyzing function will crash, and this PR aims to fix that with a mechanism that contradicts the maintainer's understanding while a similar C implementation does not need this fix. Clearly, the maintainer has not heard a certain programming mantra...