Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@justinmk
Copy link
Contributor

The "true" case in vim_strcat uses mch_memmove which supports overlapped pointers, but the "false" case uses strcpy, which does not. Use mch_memmove in both cases.

memmove supports overlapped pointers, but strcpy does not.
@brammool
Copy link
Contributor

Thanks. Was this breaking anything?

@brammool brammool closed this in 45600ce Jan 27, 2017
@vim-ml
Copy link

vim-ml commented Jan 27, 2017 via email

chrisbra pushed a commit to chrisbra/vim that referenced this pull request Mar 25, 2017
Problem:    vim_strcat() cannot handle overlapping arguments.
Solution:   Use mch_memmove() instead of strcpy(). (Justin M Keyes,
            closes vim#1415)
desvp pushed a commit to desvp/vim that referenced this pull request May 30, 2017
Problem:    vim_strcat() cannot handle overlapping arguments.
Solution:   Use mch_memmove() instead of strcpy(). (Justin M Keyes,
            closes vim#1415)
justinmk pushed a commit to neovim/neovim that referenced this pull request Nov 12, 2017
* vim-patch:8.0.0245

Problem:    The generated zh_CN.cp936.po message file is not encoded properly.
Solution:   Instead of using zh_CN.po as input, use zh_CN.UTF-8.po.

vim/vim@16038d5

* vim-patch:8.0.0248

Problem:    vim_strcat() cannot handle overlapping arguments.
Solution:   Use mch_memmove() instead of strcpy(). (Justin M Keyes,
            closes vim/vim#1415)

vim/vim@45600ce
@justinmk justinmk deleted the vim_strcat branch March 13, 2019 21:53
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.

3 participants