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 #ifdefs

bc385a150f

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 #ifdefs

7f29122c8c

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2023-06-18 07:08:31 +08:00
committed by GitHub
parent c07dceba33
commit 7e301ed5b9

View File

@@ -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) {