kutluhaneth46

Results issues of kutluhaneth46

### Describe the bug `RLP.decode` treats a zero length input (`[]`, empty `Uint8Array`, empty hex) as a successful decode of the empty byte string. The RLP encoding of the empty...

## Describe the bug `UnionType.deserialize` on an empty `Uint8Array` throws a raw `TypeError` instead of a stable SSZ decode error. Root cause: `value_deserializeFromBytes` reads `data.uint8Array[start]` with no length check. On...

### Description `UintNumberType.serialize` / `value_serializeToBytes` writes through `DataView` setters with no range check. Out-of-range JS numbers are truncated or wrapped into valid-looking uint bytes instead of throwing. `#564` tightened the...

### Describe the bug `ListBasicType.serialize` does not enforce the list `limit`. A value longer than the limit is written as SSZ bytes without error. The matching `fromJson` and `deserialize` paths...

### Description `BooleanType.fromJson` and `BooleanType.deserialize` both require a real boolean (`true`/`false`, or byte `0x00`/`0x01`). `BooleanType.serialize` does not: it uses a truthy check (`value ? 1 : 0`), so numbers, strings,...

### Describe the bug `UnionType.fromJson` parses the selected payload with `type.toJson(...)` instead of `type.fromJson(...)`. In `packages/ssz/src/type/union.ts`: ```ts return { selector: union.selector, value: type.toJson(union.value), } as ValueOfTypes; ``` That returns a...

### Describe the bug `BitArray.set` rejects `bitIndex >= bitLen`, but `BitArray.get` does not. An out-of-range `get` reads past the backing `Uint8Array` and returns `false` instead of throwing. On current `master`...