cJSON icon indicating copy to clipboard operation
cJSON copied to clipboard

Fix Undefined Behavior by replacing illegal overlap test with memmove()

Open imaami opened this issue 11 months ago • 1 comments

I pointed this out in #919, sorry for taking so long to make a PR. But here it is. No need to check for string overlap–it's simply not legal in C, and memmove() exists to guarantee that overlapping copies don't cause unforeseen problems.

imaami avatar Jan 19 '25 20:01 imaami