Skip to content

Commit

Permalink
Fix remote memory disclosure in multipart attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Jan 19, 2016
1 parent 85f8235 commit 3d31d45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/multipart.js
Expand Up @@ -68,6 +68,9 @@ Multipart.prototype.build = function (parts, chunked) {
var body = chunked ? new CombinedStream() : []

function add (part) {
if (typeof part === 'number') {
part = part.toString()
}
return chunked ? body.append(part) : body.push(new Buffer(part))
}

Expand Down

0 comments on commit 3d31d45

Please sign in to comment.