Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

[Buffer] Unable to create buffer with max value of unsigned long #269

Closed
@xiaolongx

Description

@xiaolongx

We test test-buffer.js, fail to create buffer with unsigned long value(2^32-1)
We find the buffer only accept the max unsigned long value smaller than 257, but the range is 0~4294967295

Commid id Date Result
c21b9fe Sep 23 Pass
147bb63 Oct 7 Fail

Log info:
FAIL - The length of Buffer(4294967295) expected:4294967295 got:undefined
zjs_buffer_create: unable to allocate buffer
FAIL - The length of Buffer(4294967296) expected:4294967295 got:undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions