mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-02 08:58:17 +00:00
Merge pull request #282 from google/fix-277
Fix 32bit-system integer overflow (test only)
This commit is contained in:
@@ -368,7 +368,7 @@ func checkFuzz(fuzzFields, fuzzObjects int, fail func(string, ...interface{})) {
|
|||||||
|
|
||||||
for j := 0; j < fuzzFields; j++ {
|
for j := 0; j < fuzzFields; j++ {
|
||||||
f := flatbuffers.VOffsetT((flatbuffers.VtableMetadataFields + j) * flatbuffers.SizeVOffsetT)
|
f := flatbuffers.VOffsetT((flatbuffers.VtableMetadataFields + j) * flatbuffers.SizeVOffsetT)
|
||||||
choice := int(l.Next()) % testValuesMax
|
choice := l.Next() % uint32(testValuesMax)
|
||||||
|
|
||||||
switch choice {
|
switch choice {
|
||||||
case 0:
|
case 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user