Closed TheLoneWolfling closed 8 years ago
Yep, other tokens are affected. A thousand 'a's, or a string consisting of 1000 characters, will both crash it, for instance.
Also issue #9 comes into play here.
If I wrote up a patch to replace your fixed-length buffers with heap-allocated ones, would you accept it?
Yes, in general I am pretty open about pull requests. If you do something to improve the code I'll definitely accept the pull request.
A program consisting of >= 256 zeros crashes. I haven't checked yet, but I suspect that many other tokens of length >= 256 will also crash.
Simple reproduction:
Considering you're using longs internally anyways, it may be simplest to just throw an error if you get too many characters in a single token.