Michael Wildpaner <mike@rainbow.studorg.tuwien.ac.at> writes:
> + /* fail if there is nothing to search in */
> + if ((user_sorted == NULL) || (user_length == 0))
> + return NULL;
Hm, Solaris' bsearch() fails on empty input? How bizarre.
Easily worked around though --- thanks for the report!
I suspect we'd better put a defense in get_group_line as well.
It looks like there are no other places at risk in the backend.
regards, tom lane