Skip to contentSkip to conversation

Coverity issues from 27/11/2013

DISCUSSION Andrew Cooper 2 participants 2 messages Nov 27, 2013

lore
Share & tools
lore
#0 lore raw

A very good Coverity run today. 30 issues fixed and only 2 introduced.

The two introduced were not directly as a result of recent changes, but as a result of the tmem improvements. Coverity tags an issue with types and names, so refactored code gets new issues tagged against it.

The two 'new' issues are both to do with:

static inline void tmem_copy_to_client_buf_offset(tmem_cli_va_param_t clibuf,

int off, char *tmembuf, int len)

{
    copy_to_guest_offset(clibuf,off,tmembuf,len);
}

Which throws away important errors which should not be ignored.

I guess this is more something which needs considering when doing functional improvements to the tmem code.

~Andrew

#1 lore raw
Quoted 1 line · Andrew Cooper

A very good Coverity run today. 30 issues fixed and only 2 introduced.

Woot!

Quoted 10 lines

The two introduced were not directly as a result of recent changes, but as a result of the tmem improvements. Coverity tags an issue with types and names, so refactored code gets new issues tagged against it.

The two 'new' issues are both to do with:

static inline void tmem_copy_to_client_buf_offset(tmem_cli_va_param_t clibuf,

Quoted 7 lines

int off, char *tmembuf, int len)

{
    copy_to_guest_offset(clibuf,off,tmembuf,len);
}

Which throws away important errors which should not be ignored.

That had been there before (this CID).

Quoted 3 lines

I guess this is more something which needs considering when doing functional improvements to the tmem code.

One of the patches that Bob posted fixes this (by eliminating the user of this inline function). I am waiting for those to be respun. And then I will post an GIT PULL to pull them in.

It will be after Thanksgiving.

Quoted 2 lines

~Andrew