Add low-level fuzzer, fix 64-bit issue it found

This commit is contained in:
Evan Wallace
2015-08-20 09:21:31 -07:00
parent 57a6dd472f
commit e1e8d53df6
2 changed files with 117 additions and 2 deletions

View File

@@ -864,8 +864,8 @@ flatbuffers.ByteBuffer.prototype.writeInt32 = function(offset, value) {
* @param {flatbuffers.Long} value
*/
flatbuffers.ByteBuffer.prototype.writeInt64 = function(offset, value) {
this.view_.setInt32(offset, value.low);
this.view_.setInt32(offset + 4, value.high);
this.writeInt32(offset, value.low);
this.writeInt32(offset + 4, value.high);
};
/**