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

ovn-kubernetes / libovsdb / 16077885487

04 Jul 2025 04:30PM UTC coverage: 48.523% (-0.03%) from 48.549%
16077885487

Pull #411

github

dave-tucker
fix: Integer overflow in allocation

CodeQL picked up an issue where we're allocating a slice based on the
size of 2 integers (size of db and client indicies). The addition
of these integers isn't bounds checked, so it's possible for this
to overflow or wraparound.

In practice this is likely not an issue since the integers we're
dealing with are small. Larger integers would cause a runtime
panic since the capacity would be out of range for a slice.

Either way, this adds a small function to take care of detecting
an overflow and propagates these errors back to the caller where
possible.

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
Pull Request #411: fix: Integer overflow in allocation

20 of 33 new or added lines in 2 files covered. (60.61%)

1 existing line in 1 file now uncovered.

5930 of 12221 relevant lines covered (48.52%)

110.53 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

79.86
/cache/cache.go


Source Not Available

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