]> www.ginac.de Git - ginac.git/commitdiff
Avoid infinite loop when unarchiving realsymbol and possymbol.
authorAlexei Sheplyakov <alexei.sheplyakov@gmail.com>
Mon, 4 Oct 2010 07:21:05 +0000 (09:21 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Mon, 4 Oct 2010 07:21:05 +0000 (09:21 +0200)
symbol::read_archive(): explicitly set status_flags::evaluated (and
status_flags::expanded) on object being unarchived. These flags get
reset by basic::operator=(const basic&) for realsymbol and possymbol,
and nothing sets (except symbol ctor), so automatic evaluation never
terminates (or rather, terminates due to a stack overflow). Therefore
it's necessary need to set status_flags::evaluated explicitly.

Thanks to Markus Fröb for a bugreport and a test case.


No differences found