Richard Guo <guofenglinux(at)gmail(dot)com> writes:
> Attached adds the checks in these places. But I'm not sure about the
> snowball case. Can we edit src/backend/snowball/libstemmer/*.c directly?
No, that file is generated code, as it says right at the top.
I think most likely we should report this to Snowball upstream
and see what they think is an appropriate fix.
regards, tom lane