-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RangeError: Attempt to allocate Buffer larger than maximum size: 0x3fffffff bytes #123
Comments
收到,我们会看下。 |
Oh maybe I need to supports number field |
@fengmk2 It would be nice. |
fengmk2
added a commit
to node-modules/formstream
that referenced
this issue
Nov 4, 2014
JacksonTian
added a commit
to JacksonTian/node
that referenced
this issue
Jan 7, 2016
Buffer constructor has too much behaviour. it is usual to convert string to Buffer in the form of new Buffer(str). If don't check type of first argument, new Buffer(number) can lead Buffer vulnerability. For example: - https://github.com/websockets/ws/releases/tag/1.0.1 - qiniu/nodejs-sdk#123 Introduce Buffer.encode() method to be explicit abort encoding.
@longbai @fengmk2 this bug has NOT been fixed because your package.json file still use 0.0.7 version of formstream, will you update it to the latest version of formstream, to make qiniu node sdk suports number fields? |
@douxing 我们看下 |
@longbai 感谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using node-webkit with qiniu/nodejs-sdk. I am uploading an 7KB image with following code, almost identical to the code in examples.
But when I try to upload the image, I got a RangeError: Attempt to allocate Buffer larger than maximum size: 0x3fffffff bytes.
The text was updated successfully, but these errors were encountered: