Skip to content
Snippets Groups Projects
Commit 6d1db143 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

BUG: incorrect binary read of injectedParticle (fixes #1393)

- the read offset missed the tag_ member entirely and thus the entire
  particle information would be corrupt (incorrectly interpreted) as
  well as potential violation of adjacent (trailing) memory locations.
parent b85bb664
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ Foam::injectedParticle::injectedParticle
}
else
{
is.read(reinterpret_cast<char*>(&soi_), sizeofFields);
is.read(reinterpret_cast<char*>(&tag_), sizeofFields);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment