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

zeromq / libzmq / 28615552309

02 Jul 2026 07:16PM UTC coverage: 75.443% (-0.02%) from 75.458%
28615552309

push

github

bluca
Fix signed char sign extension in UDP engine in_event()

On platforms where char is signed (Linux x86-64, MSVC, ARM with
-fsigned-char), _in_buffer[0] with a byte value >= 0x80 undergoes
sign extension when assigned to int group_size. For example, byte
0x80 becomes -128. This negative value is then implicitly cast to
size_t in msg.init_size(), producing a value near SIZE_MAX. The
allocation fails and errno_assert terminates the process.

The out_event() send path already correctly uses
static_cast<unsigned char> for the group size byte. Apply the same
cast on the receive path for consistency.

Signed-off-by: Tristan Music <tristmd@gmail.com>

15146 of 20076 relevant lines covered (75.44%)

27068.84 hits per line

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

79.53
/libzmq/src/udp_engine.cpp


Source Not Available

The file "libzmq/src/udp_engine.cpp" isn't available on github. Either it's been removed, or the repo root directory needs to be updated.

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