quackmore wrote:I don't like os_memcpy(ap.password, "", 10)
but in case you are lucky it will end up with an empty password
It's not the result that's the problem - it's the operation. This will attempt to copy 10 bytes from a memory location pointing to '\0'. If the code is bounds checking arrays then you'll get exactly the error the OP mentioned.
I'm hoping they just deleted the plain text password as part of their post