opensp-1.5.2-fix-segfault.patch 747 B

123456789101112131415161718192021222324
  1. Resolve segfault in OpenSP::ParsedSystemId::unparse.
  2. Patch taken from Debian.
  3. https://bugs.gentoo.org/show_bug.cgi?id=196230
  4. --- a/lib/ExtendEntityManager.cxx
  5. +++ b/lib/ExtendEntityManager.cxx
  6. @@ -1238,7 +1238,8 @@
  7. }
  8. StorageObjectSpec::StorageObjectSpec(const StorageObjectSpec& x)
  9. -: codingSystemName(x.codingSystemName),
  10. +: storageManager(x.storageManager),
  11. + codingSystemName(x.codingSystemName),
  12. codingSystem(x.codingSystem),
  13. specId(x.specId),
  14. baseId(x.baseId),
  15. @@ -1253,6 +1254,7 @@
  16. StorageObjectSpec& StorageObjectSpec::operator=(const StorageObjectSpec& x)
  17. {
  18. if (this != &x) {
  19. + storageManager = x.storageManager;
  20. codingSystemName = x.codingSystemName;
  21. codingSystem = x.codingSystem;
  22. specId = x.specId;