project-imas / encrypted-core-data

v2.0 - iOS Core Data encrypted SQLite store using SQLCipher
Other
785 stars 236 forks source link

Fix multi-arg predicate processing #303

Open dstevick41 opened 6 years ago

dstevick41 commented 6 years ago

Multi-arg predicates like "BETWEEN %@ AND %@" cause a crash in stringWithFormat since only one arg is given (i.e. "?,?"). The obvious intent was to supply two args "?" and "?". Provided a fix that determines the number of args and appends them one at a time.

This closes issue #302