• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

neovim / neovim / 24253
77%

Build:
DEFAULT BRANCH: master
Ran 31 Oct 2017 12:01AM UTC
Jobs 1
Files 678
Run time 27s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
24253

push

travis-ci

web-flow
pvs/V575: false positive (#7462)

./src/nvim/ex_getln.c:2787:1: error: V575 The 'memcpy' function doesn't
copy the whole string. Use 'strcpy / strcpy_s' function to preserve
terminal null.

We could instead "trick" PVS like this:

    diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
    index e79476ab532a..295630693b27 100644
    --- a/src/nvim/ex_getln.c
    +++ b/src/nvim/ex_getln.c
    @@ -2782,9 +2782,10 @@ static void ui_ext_cmdline_show(CmdlineInfo *line)

     void ui_ext_cmdline_block_append(int indent, const char *line)
     {
    -  char *buf = xmallocz(indent + strlen(line));
    +  size_t linelen = strlen(line);
    +  char *buf = xmallocz(indent + linelen);
       memset(buf, ' ', indent);
    -  memcpy(buf+indent, line, strlen(line));
    +  memcpy(buf + indent, line, linelen);

       Array item = ARRAY_DICT_INIT;
       ADD(item, DICTIONARY_OBJ((Dictionary)ARRAY_DICT_INIT));

1 of 1 new or added line in 1 file covered. (100.0%)

87381 of 113337 relevant lines covered (77.1%)

187204.81 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
src/nvim/screen.c
9
100.0
src/nvim/edit.c
Jobs
ID Job ID Ran Files Coverage
7 24253.7 (GCOV=gcov-5 CMAKE_FLAGS="$CMAKE_FLAGS -DUSE_GCOV=ON") 31 Oct 2017 12:01AM UTC 0
77.1
Travis Job 24253.7
Source Files on build 24253
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #24253
  • 241fe704 on github
  • Prev Build on master (#24242)
  • Next Build on master (#24256)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc