System.Data.SQLite

Login
This project makes use of Eagle, provided by Mistachkin Systems.
Eagle: Secure Software Automation

Artifact c2b989267c6962119010b883ef661e1e883f3623:

Ticket change [c2b989267c] - New ticket [d40c2b0eb6] sqlite3_key_v2 and sqlite3_rekey_v2 ignore the zDbName parameter. by anonymous 2018-05-29 02:47:40.
D 2018-05-29T02:47:40.860
J foundin 1.0.108
J icomment Steps\sI\snoticed\sin\smy\sproject\s(a\sWin32\sapplication\susing\sonly\sSQLite.Interop.dll\sas\sa\ssqlite3.dll\sreplacement\swith\sencryption):\r\n1.\sOpened\sa\sdatabase.\r\n2.\sAttached\sanother\sdatabase.\r\n3.\sCalled\ssqlite3_rekey_v2()\swith\szDbName\s=\sthe\sname\sof\sthe\sattached\sdatabase.\r\n\r\nExpected\sresult:\sthe\sattached\sdatabase\sshould\sbe\sencrypted.\sIf\sfor\swhatever\sreason\sthis\scannot\sbe\saccomplished\sthis\sfunction\sshould\sreturn\san\serror\scode.\r\n\r\nActual\sresult:\sthe\s'main'\sdatabase\sis\sencrypted\sinstead.\sNo\serror.\s\r\n\r\nWhen\sI\schecked\sthe\scode\sI\srealized\sthat\sboth\ssqlite3_key_v2\sand\ssqlite3_rekey_v2\signore\sthe\szDbName\sparameter.\r\n\r\nI\sconsider\sthis\san\simportant\sbug,\sbecause\sit\sis\san\sAPI\scall\sthat\sis\sdoing\ssomething\sdifferent\sthan\sexpected\swithout\sreturning\san\serror.\s\r\n\r\nWorkaround:\sdetach\sthe\sdatabase,\sencrypt\sit\sand\sattach\sit\sagain.
J login anonymous
J mimetype text/x-fossil-plain
J private_contact 6b0fa8079ee05751da308244bc4cd1e1bbd95645
J severity Important
J status Open
J title sqlite3_key_v2\sand\ssqlite3_rekey_v2\signore\sthe\szDbName\sparameter
J type Code_Defect
K d40c2b0eb6f90f9d2b94878780dee3b36f25d780
U anonymous
Z 353d0280b57dc0206ddc88b09fe96bf3