diff options
author | Bryan Mawhinney <bryanmawhinney@google.com> | 2010-12-05 17:21:07 +0000 |
---|---|---|
committer | Bryan Mawhinney <bryanmawhinney@google.com> | 2010-12-05 17:21:07 +0000 |
commit | 8ea061bcdd15588603ed4dbd720e493ec1d62a89 (patch) | |
tree | ad9453eb918b907e328a25b4bb578aa0601c6811 /libs/rs/rsg_ScriptJavaClass.cpp | |
parent | bcdf40b42fb8a4313461233d2db1eb959e2c6a70 (diff) |
Prevent message overrun in LocklessCommandFifo.
The previous logic in makeSpace and makeSpaceNonBlocking
was incorrect (probably a typo). We shouldn't loop if
looping will overwrite unread messages, or if we would
make the buffer appear empty (mPut == mGet).
Change-Id: Iabc82ca94a585a7041069db97cbed7709f2d388f
Diffstat (limited to 'libs/rs/rsg_ScriptJavaClass.cpp')
0 files changed, 0 insertions, 0 deletions