mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
vim-patch:9.0.1638: crypt tests hang and cause memory errors (#24053)
Problem: crypt tests hang and cause memory errors Solution: Move variable to start of function.438d0c5e58
N/A patches for version.c: vim-patch:9.0.1639: build failure without the crypt feature Problem: Build failure without the crypt feature. Solution: Adjust #ifdefsbc385a150f
vim-patch:9.0.1640: compiler warning for unused variables without crypt feature Problem: Compiler warning for unused variables without the crypt feature. Solution: Adjust #ifdefs7f29122c8c
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -990,7 +990,8 @@ retry:
|
||||
}
|
||||
} else {
|
||||
// Read bytes from the file.
|
||||
size = read_eintr(fd, ptr, (size_t)size);
|
||||
size_t read_size = (size_t)size;
|
||||
size = read_eintr(fd, ptr, read_size);
|
||||
}
|
||||
|
||||
if (size <= 0) {
|
||||
|
Reference in New Issue
Block a user