To: vim_dev@googlegroups.com Subject: Patch 7.4.2064 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.2064 Problem: Coverity warns for possible buffer overflow. Solution: Use vim_strcat() instead of strcat(). Files: src/quickfix.c *** ../vim-7.4.2063/src/quickfix.c 2016-07-17 19:25:00.964690765 +0200 --- src/quickfix.c 2016-07-17 22:19:02.545753576 +0200 *************** *** 2595,2601 **** { while (STRLEN(buf) < 34) STRCAT(buf, " "); ! STRCAT(buf, title); } trunc_string(buf, buf, Columns - 1, IOSIZE); msg(buf); --- 2595,2601 ---- { while (STRLEN(buf) < 34) STRCAT(buf, " "); ! vim_strcat(buf, title, IOSIZE); } trunc_string(buf, buf, Columns - 1, IOSIZE); msg(buf); *** ../vim-7.4.2063/src/version.c 2016-07-17 22:13:26.817095253 +0200 --- src/version.c 2016-07-17 22:21:05.224531053 +0200 *************** *** 760,761 **** --- 760,763 ---- { /* Add new patch number below this line */ + /**/ + 2064, /**/ -- GUARD #1: Where'd you get the coconut? ARTHUR: We found them. GUARD #1: Found them? In Mercea? The coconut's tropical! ARTHUR: What do you mean? GUARD #1: Well, this is a temperate zone. The Quest for the Holy Grail (Monty Python) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///