Skip to content
Snippets Groups Projects
Commit 4eb7a66d authored by Jason Wessel's avatar Jason Wessel
Browse files

kdb: Fix overlap in buffers with strcpy


Maxime reported that strcpy(s->usage, s->usage+1) has no definitive
guarantee that it will work on all archs the same way when you have
overlapping memory.  The fix is simple for the kdb code because we
still have the original string memory in the function scope, so we
just have to use that as the argument instead.

Reported-by: default avatarMaxime Villard <rustyBSD@gmx.fr>
Signed-off-by: default avatarJason Wessel <jason.wessel@windriver.com>
parent 3b0eb71e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment