Closed dsemenovsky closed 4 years ago
@dsemenovsky Thanks for reporting. The issue is that I am allocating the temporary new string on the stack, and for large strings it blows the stack. The solution is to allocate on the heap instead.
For a quick fix, replace:
char temp[length + 1];
with
char *temp = (char*) malloc(length + 1);
and then after JSStringRelease(s)
, put the following line:
free(temp);
@ericwlange Is the best way of doing it to fork the repo and install using Carthage from a fork after making these changes?
accidental closure
This is fixed in 0.7.x
I get this error when processing large data. The same code works perfectly on Android.