4 ms·
> but that change can be ignore No the changes _must_ be ignored. This is where the bug came from. The code does store the flags, does an operation and then r
by dathinab 6y ago
> but that change can be ignore
No the changes _must_ be ignored. This is where the bug came from.
The code does store the flags, does an operation and then restores some flags while setting some new ones.
But after clang reorders the operations it will not restore the flags from _before_ the function calls but instead takes them from _after_ the function call.
I.e. any change `sqlite3VdbeMemRelease` does to `pMem` mutst be ignored but after reordering changes to `MEM_AffMask` `MEM_Subtype` are no longer ignored.
- shawnz 6y agoI think what they are saying is, why does sqlite3VdbeMemRelease change the flags in the first place if the change must be ignored?