SQLite Forum

memset size mismatch
Login

memset size mismatch

(1) By anonymous on 2021-09-10 17:43:56 [link]

hello!

looks like you've made a typo in one of use of memset function --
[link](https://github.com/sqlite/sqlite/blob/53fa02507b2025db7b74a155c8df4a8a2e4db4d8/src/memdb.c#L511)

did you mean to write `sizeof(*pFile)`?

(2) By Larry Brasfield (larrybr) on 2021-09-10 18:12:42 in reply to 1

I agree that it looks quite strange, especially considering that the sizes differ and have no logical relation to each other.

Thanks for the report.