Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 5.34/38
-
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;