storesafe / cordova-sqlite-evcore-extbuild-free

Cordova sqlite plugin with Android performance enhancements for PhoneGap Build, GPL v3 or commercial license options

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Embedded NULL (U+0000) characters

brodybits opened this issue · comments

Embedded U+0000 NULL characters ('\u0000' or '\0') not working on Android (default Android-sqlite-evcore-native-driver access implementation) or Windows.

Solution on Android-sqlite-evcore-native-driver is to get the actual column length instead of using strlen().

Possible solution for Windows a solution was contributed in storesafe/cordova-sqlite-storage#709.

Expected to be resolved in the next major release from storesafe/cordova-sqlite-storage#687 if not sooner.

NULL character test TODOs:

  • test with NULL character in inline string value in SQL statement
  • test with NULL character in database file name

RELATED ISSUES:

  • #19 - issue with multi-byte UTF-8 characters
  • #7 - crash in case of emojis and other 4-byte UTF-8 characters
  • #25 - issue with multi-byte UTF-8 character such as accented characters or Euro symbol in database name
  • #26 - crash in case of 4-byte UTF-8 character in database file name