Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-8433

TBuffer::WriteStdString fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.34/38
    • Fix Version/s: 5.34/38, 6.10/00, 6.08/02
    • Component/s: I/O
    • Labels:
      None
    • Environment:

      Linux

    • Development:

      Description

      With commit 70f3384 interface of TBuffer::WriteStdString / TBuffer::ReadStdString was changed. Before std::string* was used as argument, now std::string&.
      But this does not work in the case of zero-pointer.
      Means when following field just zero:
      std::string* fMember;
      ROOT just crashes when try to write such object into the file.
      Also following statement in TBufferFile::WriteStdString wrong:
      if (s==0) return;

        Attachments

          Activity

            People

            • Assignee:
              pcanal Philippe Canal
              Reporter:
              slinev Serguei Linev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: