-
Notifications
You must be signed in to change notification settings - Fork 10
[IO] fix offset out-of-bounds issue in memory handle #176
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- please add expectations on the state of the buffer
- it'd be good to also:
- comment indicating that the default mode is overwrite
- also test other modes
47c87f1
to
e779f5f
Compare
@fredemmott has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
e779f5f
to
d8beead
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but it looks like expect(...)->toBeSame(...)
is gone from our internal version of fbexpect
😕
expect(...)->toEqual(...)
works the same way and just calls into expect(...)->toBeSame(...)
: https://github.com/hhvm/fbexpect/blob/master/src/ExpectObj.hack#L40
If you change those two calls in the test, everything else looks good though!
d8beead
to
99f86a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@fredemmott has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@fredemmott merged this pull request in 4870776. |
I have added a test to reproduce the bug.