Closed tagyro closed 10 years ago
Hi @tagyro,
I'm unable to reproduce this issue. Are you entering any special characters? Are you using the simulator or a device?
The substringWithRange method is used all over the place in DBMatcher and DBScorer. Any clue where this error is occurring?
Thanks!
Hi @leah I've been able to reproduce the crash consistently by following these steps:
sequenceMatch
method in the DBMatcher.m file.Note: if I just clone the repo and run the demo, the app crashes on launch because of the passwords array test in the AppDelegate.m. I commented out those lines to be able to run the app!
I've uploaded a video on Mega: https://mega.co.nz/#!BAtnTBIS!NmSiAC4XsMM3Z67XLr9VWEtEniMdbPrC_GOyYZ9dkCA
Steps to reproduce:
eventually the app will crash:
* Terminating app due to uncaught exception 'NSRangeException', reason: '-[__NSCFString substringWithRange:]: Range {11, 1} out of bounds; string length 11' * First throw call stack: CoreFoundation 0x0000000101944bbd -[NSCFString substringWithRange:] + 125 Zxcvbn 0x0000000100009788 26-[DBMatcher sequenceMatch]_block_invoke + 1816