Skip to content

Fix undefined behaviour in MSG_STRING_DUP - #345

Open
timando wants to merge 1 commit into
freeswitch:masterfrom
timando:memccpy
Open

timando wants to merge 1 commit into
freeswitch:masterfrom
timando:memccpy

Conversation

@timando

@timando timando commented Oct 1, 2026

Copy link
Copy Markdown

calling memccpy with src and dest overlapping is undefined behaviour and valgrind complains. This commit changes MSG_STRING_DUP to use stpcpy instead.

calling memccpy with src and dest overlapping is undefined behaviour and valgrind complains.
This commit changes MSG_STRING_DUP to use stpcpy instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant