Project

General

Profile

Bug #26937

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

Added by Radoslaw Zarzynski about 1 year ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
Start date:
08/14/2018
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

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

History

#1 Updated by Greg Farnum 12 months 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 12 months ago

  • Status changed from New to Resolved

#3 Updated by Greg Farnum 5 months ago

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

Also available in: Atom PDF