cereal icon indicating copy to clipboard operation
cereal copied to clipboard

XMLInputArchive SIGSEV segfault

Open andrewkcorcoran opened this issue 3 years ago • 0 comments

The below code generates a segfault in the XMLInputArchive - we should probably be detecting xml which doesn't match expectations and throwing an exception.

#include <sstream>
#include "cereal/archives/xml.hpp"

int main()
{
    auto stream = std::istringstream{R"(
  <cereal>
  </cereal>
)"};
      int i;
      cereal::XMLInputArchive{stream}(i);
      return 0;
}

andrewkcorcoran avatar May 03 '21 13:05 andrewkcorcoran