Forum OpenACS Q&A: Response to Problems with ns_uuencode patch to AOLserver

Hmm. That post had a backslash-zero in it, so it isn't being displayed. A bug with the bboard code? I think it looked fine on the confirm page. Trying again:

2. Major bug - when the patched function is padding the array with zeros, it overwrites memory it shouldn't be.

bytes = (char *) Tcl_GetByteArrayFromObj(objv[1], &nbytes);
...
padbytes = nbytes;
while (padbytes % 3 != 0) {
    bytes[padbytes] = '