Re: [sqlite] sqlite3_aggregate_context() in xFinal callback does not zeroes out memory

2017-12-17 Thread Lifepillar
On 17/12/2017 11:40, Lifepillar wrote: When I call a custom aggregate function on an empty table T, e.g., `select myaggr(A) from T`, the sqlite3_aggregate_context() call in the xFinal callback does not return zeroed out memory, but a block of seemingly uninitialized memory. Is that expected? If s

[sqlite] sqlite3_aggregate_context() in xFinal callback does not zeroes out memory

2017-12-17 Thread Lifepillar
When I call a custom aggregate function on an empty table T, e.g., `select myaggr(A) from T`, the sqlite3_aggregate_context() call in the xFinal callback does not return zeroed out memory, but a block of seemingly uninitialized memory. Is that expected? If so, how do I know that the xStep callback