SQLite

Artifact [9c40070d]
Login

Artifact 9c40070dd46915e9094ac3c277289432bce03094:

Ticket change [9c40070d] - New ticket [264b970c] Crash when calling sqlite_rename_parent() with NULL parameters.. by drh 2014-04-14 19:46:52.
D 2014-04-14T19:46:52.511
J foundin 3.8.4.3
J icomment The\ssqlite_rename_parent()\sSQL\sfunction\sis\san\sundocumented\sfunction\sused\sas\r\npart\sof\sthe\simplementation\sof\sALTER\sTABLE.\s\sThis\sfunction\sshould\snever\sbe\r\naccess\sby\san\sapplication.\s\sBut\sif\san\sapplication\sdoes\sinvoke\sthe\sfunction\sand\r\ngives\sit\sa\sNULL\sparameter\sin\sthe\s1st\sor\s2nd\sargument,\sa\scrash\smight\sresult.\r\n\r\n<blockquote><verbatim>\r\nSELECT\ssqlite_rename_parent(NULL,1,1);\r\n</verbatim></blockquote>\r\n\r\nThe\sproblem\sappears\sto\shave\sexisted\ssince\sALTER\sTABLE\swas\sfirst\senhanced\sto\r\nbe\sable\sto\sdeal\swith\sforeign\skey\sconstraints,\sby\scheck-in\s[b4a10c39e726dc190]\r\non\s2009-09-26\sfor\sSQLite\sversion\s3.6.19.
J login drh
J mimetype text/x-fossil-wiki
J severity Important
J status Open
J title Crash\swhen\scalling\ssqlite_rename_parent()\swith\sNULL\sparameters.
J type Code_Defect
K 264b970c4379fd4b94c1173d9623d619675f20c7
U drh
Z 90e67d242fae40ccc8bf78d0d832bd65