[Samba] cli_pipe: return critical error. Error was Call returnedzerobyte(EOF), hilfe!

jra at dp.samba.org jra at dp.samba.org
Thu May 15 17:10:47 GMT 2003

On Thu, May 15, 2003 at 05:40:26PM +0100, Dragan Krnic wrote:
> Hi Kurt,
> I've discovered another little glitch in the functon
> strlen_w of lib/util_unistr.c when it tries to count
> characters in an empty string. That causes the
> rpcclient's "enumdrivers 3" command to segment.
> A simple correction of the loop line 644:
>    for(len = 0; *(src++); len++)
> so that it should read like this:
>    for(len = 0; src && *(src++); len++)
> removes that problem too. You can read a little more
> on this in 
> https://bugzilla.samba.org/show_bug.cgi?id=82

This actually isn't the correct fix. strlen_w *should*
core dump given a null pointer. Can yu let me know the
calling function and I'll fix that instead ?



More information about the samba mailing list