On 11/21/19, Warren Young <war...@etr-usa.com> wrote:
> On Nov 21, 2019, at 3:54 AM, Richard Hipp <d...@sqlite.org> wrote:
>>
>> The solution is here: https://www.sqlite.org/src/info/0d1055a5da8274a5
>
> memset before free?  Why does that help?

The memset() just forces the bug to the surface in builds where the
ckmalloc()/ckfree() routines of TCL are using caching that prevents
valgrind/ASAN from seeing the use-after-free.  The memset() is not
part of the bug fixx itself, but is a preventative measure to try to
prevent similar bugs in the future.

-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to