]> www.ginac.de Git - ginac.git/commit
[bugfix] Fix crash in basic::subs().
authorRichard Kreckel <kreckel@ginac.de>
Thu, 21 Jul 2016 06:55:44 +0000 (08:55 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Thu, 21 Jul 2016 06:55:44 +0000 (08:55 +0200)
commit33a92d56aeaadfe8dad246ae17b091e14b220e82
treeb1ac43378bc1291d0500d915d519c9afa3a90340
parent55d29b0d5bad410574358f54bf0f760d0cc79ae7
[bugfix] Fix crash in basic::subs().

A regression in 1.7.0 was introduced with 1b8bcb06 in function
basic::subs_one_level(): implicitly casting *this to an ex first for
finding *this in m and later in the function's return statement caused
a crash in the second cast because *this was deleted in the first one.
After all, *this was dynamically allocated in basic::subs().

This bug was reported and hunted down by Mario Prausa.
ginac/basic.cpp