mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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.
This commit is contained in:
committed by
Andrew Heather
parent
005abee368
commit
65be1b0e29
@ -76,7 +76,7 @@ Foam::injectedParticle::injectedParticle
|
||||
}
|
||||
else
|
||||
{
|
||||
is.read(reinterpret_cast<char*>(&soi_), sizeofFields);
|
||||
is.read(reinterpret_cast<char*>(&tag_), sizeofFields);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user