While fixing the patch according to jian he recommendations, I come to a
conclusion that using void* pointer to a structure is really bad idea. Do not
know why I ever did it that way from start.
So I fixed it.
Changes of this fix can be seen here:
https://gitlab.com/dhyannataraj/postgres/-/commit/be4d9e16
The whole patch is attached to this mail.
--
Nikolay Shaplov aka Nataraj
Fuzzing Engineer at Postgres Professional
Matrix IM: @dhyan:nataraj.su