Skip to content
Snippets Groups Projects
Commit b76e7e56 authored by Carl Philipp Klemm's avatar Carl Philipp Klemm
Browse files

Spectra: fix UB when a NULL terminator is found inside the header string in a spectra.

parent bec90c95
No related branches found
No related tags found
No related merge requests found
......@@ -212,7 +212,7 @@ EisSpectra EisSpectra::loadFromStream(std::istream& stream)
}
out.model.erase(std::remove(out.model.begin(), out.model.end(), '\0'), out.model.end());
out.model.erase(std::remove(out.header.begin(), out.header.end(), '\0'), out.header.end());
out.header.erase(std::remove(out.header.begin(), out.header.end(), '\0'), out.header.end());
while(stream.good())
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment