postgrespro/pg_trgm_pro

No null terminated character at the end of the array

Opened this issue · 0 comments

Hello!
During the static analysis detected possible no null terminated character at the end of the array. Copying from string 'bword' to '&buf[2]' without null termination at trgm_op.c:253. Further in the code, there is no explicit initialization of the null terminator anywhere. Please clarify whether this is critical?