You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-text/opensp/files/opensp-1.5.2-fix-segfault.p...

24 lines
747 B

Resolve segfault in OpenSP::ParsedSystemId::unparse.
Patch taken from Debian.
https://bugs.gentoo.org/show_bug.cgi?id=196230
--- a/lib/ExtendEntityManager.cxx
+++ b/lib/ExtendEntityManager.cxx
@@ -1238,7 +1238,8 @@
}
StorageObjectSpec::StorageObjectSpec(const StorageObjectSpec& x)
-: codingSystemName(x.codingSystemName),
+: storageManager(x.storageManager),
+ codingSystemName(x.codingSystemName),
codingSystem(x.codingSystem),
specId(x.specId),
baseId(x.baseId),
@@ -1253,6 +1254,7 @@
StorageObjectSpec& StorageObjectSpec::operator=(const StorageObjectSpec& x)
{
if (this != &x) {
+ storageManager = x.storageManager;
codingSystemName = x.codingSystemName;
codingSystem = x.codingSystem;
specId = x.specId;