public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 00/16] Fix issues reported by Coverity
@ 2022-04-05 17:04 Stefano Brivio
  2022-04-05 17:04 ` [PATCH 01/16] treewide: Invalid type in argument to printf format specifier, CWE-686 Stefano Brivio
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: Stefano Brivio @ 2022-04-05 17:04 UTC (permalink / raw)
  To: passt-dev

[-- Attachment #1: Type: text/plain, Size: 1646 bytes --]

Most of these are formal issues with no actual effect, some are false
positives, but it looks sensible to fix all of them and there's also an
interesting finding in udp_timer().

Stefano Brivio (16):
  treewide: Invalid type in argument to printf format specifier, CWE-686
  passt: Ignoring number of bytes read, CWE-252
  tcp: False "Untrusted loop bound" positive, CWE-606
  treewide: Unchecked return value from library, CWE-252
  tap: Resource leak, CWE-404
  conf, packet: Operands don't affect result, CWE-569
  passt: Improper use of negative value (CWE-394)
  treewide: Argument cannot be negative, CWE-687
  conf: False "Assign instead of compare" positive, CWE-481
  conf, tap: False "Buffer not null terminated" positives, CWE-170
  tcp: Dereference null return value, CWE-476
  tcp_splice: Logically dead code, CWE-561
  tcp, tcp_splice: False "Negative array index read" positives, CWE-129
  tcp: False "Out-of-bounds read" positive, CWE-125
  udp: Out-of-bounds read, CWE-125 in udp_timer()
  arch: Pointer to local outside scope, CWE-562

 arch.c       | 10 +++---
 conf.c       | 15 +++++----
 icmp.c       | 13 +++++---
 netlink.c    | 40 ++++++++++++++---------
 packet.c     |  8 ++---
 passt.c      | 24 ++++++++++----
 pasta.c      | 25 +++++----------
 pcap.c       |  6 ++--
 qrap.c       | 15 ++++++---
 tap.c        | 35 +++++++++++++-------
 tcp.c        | 75 ++++++++++++++++++++++++++-----------------
 tcp_splice.c | 91 ++++++++++++++++++++++++++++++++++------------------
 udp.c        |  5 +--
 util.c       | 11 ++++---
 util.h       |  9 ++++++
 15 files changed, 238 insertions(+), 144 deletions(-)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-04-05 17:05 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-05 17:04 [PATCH 00/16] Fix issues reported by Coverity Stefano Brivio
2022-04-05 17:04 ` [PATCH 01/16] treewide: Invalid type in argument to printf format specifier, CWE-686 Stefano Brivio
2022-04-05 17:05 ` [PATCH 02/16] passt: Ignoring number of bytes read, CWE-252 Stefano Brivio
2022-04-05 17:05 ` [PATCH 03/16] tcp: False "Untrusted loop bound" positive, CWE-606 Stefano Brivio
2022-04-05 17:05 ` [PATCH 04/16] treewide: Unchecked return value from library, CWE-252 Stefano Brivio
2022-04-05 17:05 ` [PATCH 05/16] tap: Resource leak, CWE-404 Stefano Brivio
2022-04-05 17:05 ` [PATCH 06/16] conf, packet: Operands don't affect result, CWE-569 Stefano Brivio
2022-04-05 17:05 ` [PATCH 07/16] passt: Improper use of negative value (CWE-394) Stefano Brivio
2022-04-05 17:05 ` [PATCH 08/16] treewide: Argument cannot be negative, CWE-687 Stefano Brivio
2022-04-05 17:05 ` [PATCH 09/16] conf: False "Assign instead of compare" positive, CWE-481 Stefano Brivio
2022-04-05 17:05 ` [PATCH 10/16] conf, tap: False "Buffer not null terminated" positives, CWE-170 Stefano Brivio
2022-04-05 17:05 ` [PATCH 11/16] tcp: Dereference null return value, CWE-476 Stefano Brivio
2022-04-05 17:05 ` [PATCH 12/16] tcp_splice: Logically dead code, CWE-561 Stefano Brivio
2022-04-05 17:05 ` [PATCH 13/16] tcp, tcp_splice: False "Negative array index read" positives, CWE-129 Stefano Brivio
2022-04-05 17:05 ` [PATCH 14/16] tcp: False "Out-of-bounds read" positive, CWE-125 Stefano Brivio
2022-04-05 17:05 ` [PATCH 15/16] udp: Out-of-bounds read, CWE-125 in udp_timer() Stefano Brivio
2022-04-05 17:05 ` [PATCH 16/16] arch: Pointer to local outside scope, CWE-562 Stefano Brivio

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).