projects
/
platform
/
upstream
/
flatbuffers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a15a8d9
)
fix Dart Builder._writeString() - always write trailing zero byte (#6390)
author
Ivan Dlugos
<6349682+vaind@users.noreply.github.com>
Thu, 7 Jan 2021 19:40:47 +0000
(20:40 +0100)
committer
GitHub
<noreply@github.com>
Thu, 7 Jan 2021 19:40:47 +0000
(11:40 -0800)
dart/lib/flat_buffers.dart
patch
|
blob
|
history
diff --git
a/dart/lib/flat_buffers.dart
b/dart/lib/flat_buffers.dart
index
0f4ccbc
..
99fd6a2
100644
(file)
--- a/
dart/lib/flat_buffers.dart
+++ b/
dart/lib/flat_buffers.dart
@@
-670,6
+670,7
@@
class Builder {
for (int i = 0; i < length; i++) {
_buf.setUint8(offset++, bytes[i]);
}
+ _buf.setUint8(offset, 0); // trailing zero
return result;
}