mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
Correct the max/min signed/unsigned 32-bit int
The test was trying to pack an unsigned int which couldn't fit as a signed int and putInt() wasn't doing the validation in the correct range
This commit is contained in:
@@ -192,7 +192,7 @@ function fuzzTest1(Assert $assert)
|
||||
$uchar_val = 0xFF;
|
||||
$short_val = -32222; // 0x8222;
|
||||
$ushort_val = 0xFEEE;
|
||||
$int_val = 0x83333333 | 0;
|
||||
$int_val = 0x7fffffff | 0;
|
||||
// for now
|
||||
$uint_val = 1;
|
||||
$long_val = 2;
|
||||
|
||||
Reference in New Issue
Block a user