Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash observed when very long paragraphs are diffed (Objective-C) #81

Open
GoogleCodeExporter opened this issue May 6, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create two similar string with a paragraph of over 10,000 characters (no \n 
characters for a long time)
2. Diff the two strings.  

I get a crash in DiffMatchPatch on line 674, an array is not being allocated, 
crashing in the for loop.

What version of the product are you using? On what operating system?
I am using OS X 10.8 Mountain Lion with XCode 4.5.2

Please provide any additional information below.

I was able to 'fix' the issue by changing the allocation of these arrays to 
malloc, the .m file is attached.  However, there might be more issues caused by 
this issue with very long lines.

If you have any trouble repeating the issue, I'd be happy to help.

Original issue reported on code.google.com by stephen....@gmail.com on 30 Jan 2013 at 4:59

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant