On Wed, Jun 22, 2022 at 2:52 PM Bram Moolenaar <[email protected]> wrote:
>
>
> Patch 8.2.5148
> Problem:    Invalid memory access when using an expression on the command 
> line.
> Solution:   Make sure the position does not go negative.
> Files:      src/ex_getln.c, src/testdir/test_cmdline.vim

With this patch, Tiny and Small do not build (with gcc 12.1.0 on
openSUSE Tumbleweed):

linux-tuxedo:~/.build/vim/vim-hg/src/shadow-tiny # (make || echo 'exit
status' $? ; date) 2>&1 |tee -a make.log
gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -fno-strength-reduce -Wall
-Wno-deprecated-declarations -D_REENTRANT -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=1        -o objects/ex_getln.o ex_getln.c
ex_getln.c: In function ‘cmdline_insert_reg’:
ex_getln.c:1209:35: error: ‘new_cmdpos’ undeclared (first use in this
function); did you mean ‘set_cmdspos’?
 1209 |     int         save_new_cmdpos = new_cmdpos;
      |                                   ^~~~~~~~~~
      |                                   set_cmdspos
ex_getln.c:1209:35: note: each undeclared identifier is reported only
once for each function it appears in
make: *** [Makefile:3228: objects/ex_getln.o] Error 1
exit status 2
Wed 22 Jun 17:42:51 CEST 2022
linux-tuxedo:~/.build/vim/vim-hg/src/shadow-tiny #


Best regards,
Tony.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAJkCKXvnVMpdwuohsraVWZy_cCRWTTHrvM7QDpjjyVkLa7ozzg%40mail.gmail.com.

Raspunde prin e-mail lui