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

zeromq / libzmq / 28610023098

02 Jul 2026 05:42PM UTC coverage: 75.443% (-0.03%) from 75.471%
28610023098

push

github

bluca
Fix memory leak in UDP engine on truncated group size

When the group_size byte in a received UDP packet exceeds the actual
payload length, in_event() returns early without calling msg.close().
Since msg_t has no destructor, the allocated message memory is
permanently leaked. Repeated packets exhaust process memory.

Add msg.close() before the early return, matching the cleanup pattern
used elsewhere in the same function (e.g., line 564).

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

15146 of 20076 relevant lines covered (75.44%)

24805.79 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