Project

General

Profile

Bug #26937

entity_addr_t::parse does memset() on non-POD

Added by Radoslaw Zarzynski over 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

bool entity_addr_t::parse(const char *s, const char **end)
{
  memset(this, 0, sizeof(*this));
  // ...
}

History

#1 Updated by Greg Farnum over 5 years ago

entity_addr_t is two __u32 ints and a union of sockaddr, sockaddr_in, and sockadddr_in6.
I believe those all qualify as PODs?

#2 Updated by Kefu Chai over 5 years ago

  • Status changed from New to Resolved

#3 Updated by Greg Farnum about 5 years ago

  • Project changed from Ceph to Messengers
  • Category deleted (msgr)

Also available in: Atom PDF