Menu

#14 SysTest.readBytes(): bad use of offset argument

open
None
3
2010-11-19
2010-11-19
Jim Miner
No

The method SysTest.readBytes() uses the 'offset' argument as an offset into the array it is using. However, the caller is passing the BodyDataFileOffset property of the incoming bundle, which is the offset into File containing the payload. readBytes() needs to be changed to do a skip in the file to the specified offset, rather than using the offset argument as an array offset. This is low priority because under the conditions of the test, the BodyDataFileOffset field is always zero.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB