[PATCH 1/2] s3fs-popt: Add function to burn the commandline password.

Scott Lovenberg scott.lovenberg at gmail.com
Tue Nov 6 18:48:48 MST 2012


On Tue, Nov 6, 2012 at 8:34 PM, Jeremy Allison <jra at samba.org> wrote:
> On Tue, Nov 06, 2012 at 07:41:27PM -0500, Scott Lovenberg wrote:
>>
>>  memset(p, '\0', strlen(p)) doesn't work for multibyte characters.
>> Any chance you'll see them here?  I'm just assuming since you used
>> strchr_m instead of strchr.
>
> Yes it does. MB characters in this case are utf8, or another
> internal UNIX charset which is guarenteed not to contain NULL
> characters inside it. MB doesn't mean UTF16 or any other
> unicode encoding.
>
> Jeremy.

Eek!  I stand corrected.  Well, you know what they say about
assumptions... (they happen when you assume things) :)

-- 
Peace and Blessings,
-Scott.


More information about the samba-technical mailing list