>> The block of code that refers to is: >> >> if( p->azVar ){ >> p->nzVar = pParse->nzVar; >> memcpy(p->azVar, pParse->azVar, p->nzVar*sizeof(p->azVar[0])); >> memset(pParse->azVar, 0, pParse->nzVar*sizeof(pParse->azVar[0])); >> } >> >> So maybe the check should be on (pParse->azVar) ? >> > > No, that would result in NULL pointer dereferences following an > out-of-memory condition. The correct work-around (it isn't really a bug > fix) is to test pParse->nzVar in addition to p->azVar. See > https://www.sqlite.org/src/info/0d04f380e1bd17104b3cf76b64d0cfc79a726606 > for the change.
Thanks, it's much appreciated! (And sorry about the USBAN typo) Hadley -- http://had.co.nz/ _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users