Mercurial > vim
view src/proto/crypt_zip.pro @ 32226:a5b5d8df5763 v9.0.1444
patch 9.0.1444: crash when passing NULL to setcmdline()
Commit: https://github.com/vim/vim/commit/ac6cd31afcbdd08bfa92ca33f7d4ce5773ba4353
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed Apr 12 16:21:14 2023 +0100
patch 9.0.1444: crash when passing NULL to setcmdline()
Problem: Crash when passing NULL to setcmdline(). (Andreas Louv)
Solution: Use tv_get_string() instead of using v_string directly.
(closes #12231, closes #12227)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 12 Apr 2023 17:30:04 +0200 |
parents | 7e9e53a0368f |
children | 3d4e28569a6d |
line wrap: on
line source
/* crypt_zip.c */ int crypt_zip_init(cryptstate_T *state, char_u *key, char_u *salt, int salt_len, char_u *seed, int seed_len); void crypt_zip_encode(cryptstate_T *state, char_u *from, size_t len, char_u *to, int last); void crypt_zip_decode(cryptstate_T *state, char_u *from, size_t len, char_u *to, int last); /* vim: set ft=c : */