zenexity/ReactiveMongo — pull request #49 by MarkvanderTol (2013-03-14 10:20:53+00:00)
Title: Fixed off-by-one bug when reading a BSONBinary

When reading a BSONBinary from a document, the readIndex is increased one too little. This causes that the next element won't be read correctly.

This is caused by discard increasing the index one too little. Other calls to discard add one to the parameter as a workaround to this bug, but it was easy to fix the root cause.