mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-20 02:04:54 +00:00
Prevent sqlite from over-reading a structure
Our sqlite fork was reading past the end of the zP3 KeyInfo structure here. This was causing gcc and clang's address sanitization to alert. FS-6279 --resolve Thanks-to: Christopher Rienzo <chris@rienzo.net>
This commit is contained in:
parent
a048d2b638
commit
3366fe95b0
@ -527,7 +527,7 @@ void sqlite3VdbeChangeP3(Vdbe *p, int addr, const char *zP3, int n){
|
||||
pOp->p3 = (char*)pKeyInfo;
|
||||
if( pKeyInfo ){
|
||||
unsigned char *aSortOrder;
|
||||
memcpy(pKeyInfo, zP3, nByte);
|
||||
memcpy(pKeyInfo, zP3, nByte - nField);
|
||||
aSortOrder = pKeyInfo->aSortOrder;
|
||||
if( aSortOrder ){
|
||||
pKeyInfo->aSortOrder = (unsigned char*)&pKeyInfo->aColl[nField];
|
||||
|
Loading…
x
Reference in New Issue
Block a user