Re: POST request data terminated at first null byte

From: Nigel Metheringham <Nigel.Metheringham@dont-contact.us>
Date: Fri, 14 Feb 1997 17:29:42 +0000

Nigel.Metheringham@theplanet.net said:
} Looks like the POST data is being copied with a strncpy rather than a
} memcpy at a guess.

Looks like I was right... even better, here is the comment from the
offending section:-
     /* Use xmalloc/xmemcpy instead of xstrdup because inbuf might
      * contain NULL bytes; especially for POST data */

I guess we all have off days!

A patch is attached.

        Nigel.

[ Nigel.Metheringham@theplanet.net - Systems Software Engineer ]
[ Tel : +44 113 251 6012 Fax : +44 113 224 0003 ]
[ Dedicated to the replacement of sendmail! ]

Received on Fri Feb 14 1997 - 10:04:02 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:34:27 MST