Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH 1/3: Fix buffer overflow and wrong behavior in url_encode



"const unsigned char *in" looks very weird to me. Wouldn't it be possible to cast "*in" in the call to sprintf:

out += sprintf(out, "%%%02X", (unsigned char)*in);

or maybe

out += sprintf(out, "%%%02X", *in & 0xFF);

Philippe



Messages sorted by: Reverse Date, Date, Thread, Author