libdbi-drivers: Add fixes for out-of-bounds write in the sqlite3 driver

While working on the OpenBSC/NITB schema migration I experienced
crashes and traced it down to libdbi-drivers. It was possible that
a special string quote each character and then adding '"\0' would
result in out of bounds write.
2 files changed