List Info

Thread: Re: (ITS#4908) bug ldapsearch.c




Re: (ITS#4908) bug ldapsearch.c
country flaguser name
United States
2007-04-03 13:33:14
andosys-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.

-- 
Regards,
Hallvard



[1]

about | contact  Other archives ( Real Estate discussion Medical topics )