ando@sys-net.it writes:
The bug is still present. It is a consequence of naively assuming that argv[] is NULL terminated, which is not required to be, AFAIK.
Yes it is. The C standard's "Program Startup" section requires argv[argc] == NULL. Though I suppose some systems may break it. And the standard does allow argc == 0 (and thus argv[0] == NULL), maybe some OpenLDAP code mishandles that.