-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
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
Uninitialized memory when running tests with valgrind: regmatch.rm_ic
not initialized
#8800
Comments
chrisbra
pushed a commit
to chrisbra/vim
that referenced
this issue
Aug 30, 2021
Problem: Using uninitialized memory. Solution: Initialize the rm_ic field. (Dominique Pellé, closes vim#8800)
seandewar
added a commit
to seandewar/neovim
that referenced
this issue
Sep 6, 2021
Problem: Using uninitialized memory. Solution: Initialize the rm_ic field. (Dominique Pellé, closes vim/vim#8800) vim/vim@a918712
seandewar
added a commit
to seandewar/neovim
that referenced
this issue
Sep 10, 2021
Problem: Using uninitialized memory. Solution: Initialize the rm_ic field. (Dominique Pellé, closes vim/vim#8800) vim/vim@a918712
seandewar
added a commit
to seandewar/neovim
that referenced
this issue
Sep 10, 2021
Problem: Using uninitialized memory. Solution: Initialize the rm_ic field. (Dominique Pellé, closes vim/vim#8800) vim/vim@a918712
seandewar
added a commit
to seandewar/neovim
that referenced
this issue
Sep 10, 2021
Problem: Using uninitialized memory. Solution: Initialize the rm_ic field. (Dominique Pellé, closes vim/vim#8800) vim/vim@a918712
lewis6991
pushed a commit
to lewis6991/neovim
that referenced
this issue
Dec 12, 2021
Problem: Using uninitialized memory. Solution: Initialize the rm_ic field. (Dominique Pellé, closes vim/vim#8800) vim/vim@a918712
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Valgrind detects use of uninitialized memory when running vim tests.
To Reproduce
Build vim with valgrind run this test:
File
valgrind.test_breakindent
then contains:You need to add the valgrind
--track-origins=yes
option to see that the uninitialize memory comes from the stack of functionget_breakindent_win
.The following patch avoids the valgrind error, but I'm not sure whether it's correct. At least it should give a clue as to how to properly fix it:
Environment
The text was updated successfully, but these errors were encountered: