Opened 9 years ago

Closed 9 years ago

#9127 closed Patches (fixed)

Unitialized reference in constructor of graph::distributed::named_graph::lazy_add_vertex

Reported by: Chris Bowen <lost.era@…> Owned by: Jeremiah Willcock
Milestone: To Be Determined Component: graph
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

The copy constructor of graph::distributed::named_graph::lazy_add_vertex currently initializes the graph reference to itself, rather than to the graph reference of the instance from which it is copying. Subsequent accesses of this reference would produce undefined behavior, although a failing case is difficult to construct due to copy elision.

(Semantically the copy constructor should probably be deleted and replaced by a move constructor when this is supported, but this patch does not include that.)

Attachments (1)

lazy_add_vertex.patch (612 bytes ) - added by Chris Bowen <lost.era@…> 9 years ago.

Download all attachments as: .zip

Change History (2)

by Chris Bowen <lost.era@…>, 9 years ago

Attachment: lazy_add_vertex.patch added

comment:1 by Jeremiah Willcock, 9 years ago

Resolution: fixed
Status: newclosed

(In [86515]) Applied patch from #9127 to fix lazy_add_vertex; fixes #9127

Note: See TracTickets for help on using tickets.