1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Suppress harmless UBSAN warnings about memory overflow in OP_AddImm. The

exact same machine code is generated by GCC.

FossilOrigin-Name: b0594383b9fa021a8713d640a4606b9053f8e21d64b4ec8ea60a0b6cddfca306
This commit is contained in:
drh
2023-11-08 00:45:14 +00:00
parent ec8f893e06
commit c78d3b5963
3 changed files with 8 additions and 8 deletions

View File

@@ -2033,7 +2033,7 @@ case OP_AddImm: { /* in1 */
pIn1 = &aMem[pOp->p1];
memAboutToChange(p, pIn1);
sqlite3VdbeMemIntegerify(pIn1);
pIn1->u.i += pOp->p2;
*(u64*)&pIn1->u.i += (u64)pOp->p2;
break;
}