We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v7.4.785...v7.4.790
There are still mixed sprintf and vim_snprintf cases. https://github.com/vim/vim/blob/v7.4.943/src/option.c#L4979 https://github.com/vim/vim/blob/v7.4.943/src/option.c#L5808
sprintf
vim_snprintf
We does not use the last allocated byte of buf_old and buf_new. EDIT: And Should we use NUMBUFLEN?
buf_old
buf_new
NUMBUFLEN
char_u buf_old[11], buf_new[11], buf_type[7]; vim_snprintf((char *)buf_old, 10, "%ld", old_value); vim_snprintf((char *)buf_new, 10, "%ld", value);
https://github.com/vim/vim/blob/v7.4.943/src/option.c#L8957-L8959
EDIT2 If errmsg equals NULL, saved_origval won't be freed (memory leaking). https://github.com/vim/vim/blob/v7.4.943/src/option.c#L4955-L4991
errmsg
NULL
saved_origval
The text was updated successfully, but these errors were encountered:
a988496 fixes the memory leak.
Sorry, something went wrong.
No branches or pull requests
v7.4.785...v7.4.790
There are still mixed
sprintf
andvim_snprintf
cases.https://github.com/vim/vim/blob/v7.4.943/src/option.c#L4979
https://github.com/vim/vim/blob/v7.4.943/src/option.c#L5808
We does not use the last allocated byte of
buf_old
andbuf_new
.EDIT: And Should we use
NUMBUFLEN
?https://github.com/vim/vim/blob/v7.4.943/src/option.c#L8957-L8959
EDIT2If
errmsg
equalsNULL
,saved_origval
won't be freed (memory leaking).https://github.com/vim/vim/blob/v7.4.943/src/option.c#L4955-L4991
The text was updated successfully, but these errors were encountered: