Opened 16 years ago

Closed 16 years ago

#846 closed Bugs (Fixed)

Possible bug in basic_iarchive_impl::reset_object_address

Reported by: nobody Owned by: Robert Ramey
Milestone: Component: serialization
Version: None Severity:
Keywords: Cc:

Description

In basic_iarchive_impl::reset_object_address (file libs/serialization/src/basic_iarchive.cpp), the loop index i gets incremented twice in each iteration of the second for loop: first in the "for" line, and then at the last line before the end of the loop.  This causes some object addresses to not be updated as they should. In turn, this causes problems when serializing pointers to object contained in a map.

This seems to be a bug. In some preliminary tests, the problem disappears if I take out the second "i++" (line 297 of version 1.20.2.2).


Change History (1)

comment:1 by Robert Ramey, 16 years ago

Status: assignedclosed
Logged In: YES 
user_id=396141
Originator: NO

Fixed in next release
Note: See TracTickets for help on using tickets.