>
>At any rate, I think the problem is that fldText needs to be at 
>least pwdLength
>bytes long. If not, then the call to MemMove in PwdVerify will attempt to copy
>bytes extending past the end of fldText. If (fldText + pwdLength - 
>1) happens to
>be an unallocated memory chunk, then you'd get this error message.

I figured something like that may be occuring... I should have known 
since it was crashing in MemMove() and not StrCopy() that it wasn't 
paying attention to the NULL character. In fact, why ISN'T PwdVerify 
using StrCopy(), then this bug wouldn't occur!


>Unless PwdVerify is documented as requiring that the input buffer be pwdLength
>characters long, then I'd say this is a bug in PwdVerify; it shouldn't be
>reading more characters than are provided.
>


I remember that I specifically checked the DOCS to see if a min. 
length string was required and this isn't mentioned.

I tried copying to a local pwdLength buffer and now it works. Thanks, keith!


Alan Pinstein
Synergy Solutions, Inc.
http://www.synsolutions.com
1-800-210-5293

Reply via email to