GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Buffer::Length hard crashes · Issue #11954 · nodejs/node

Buffer::Length hard crashes #11954

New issue
Copy link
New issue
Copy link
Closed
Closed
Buffer::Length hard crashes#11954
Zintexiss/node-22
#60
(+9)
Copy link
Assignees
TimothyGu
Labels
bufferIssues and PRs related to the buffer subsystem.confirmed-bugIssues and PRs for confirmed bugs.

Description

@deian
deian
opened on Mar 21, 2017
Issue body actions
  • Version: 6.9.2 -> 7.2.0
  • Platform: Linux
  • Subsystem:

Buffer::Length hard crashes.

I know that there are other issues where what to do about crashing bugs is being discussed, but I think most of the other examples are code directly accessible to JavaScript via process.binding. Here is an example that is something more subtle, but nevertheless can be triggered.

const dgram = require('dgram');
const util = require('util');
// Create object that passes instanceof Buffer check
function FakeBuffer() { }
util.inherits(FakeBuffer, Buffer);
const message = new FakeBuffer();
// Pass object to code that eventually calls Length
dgram.createSocket('udp4'). send(message, 41234, 'localhost', _ => {});

Activity

  1. TimothyGu
    self-assigned this
    on Mar 21, 2017
  2. TimothyGu
    added
    bufferIssues and PRs related to the buffer subsystem.
    confirmed-bugIssues and PRs for confirmed bugs.
    on Mar 21, 2017
  3. addaleax
    closed this as completedin 2dc1053on Mar 27, 2017
  4. TimothyGu
    added a commit that references this issue on Sep 22, 2017

    buffer: stricter Buffer.isBuffer

    ee2d44a
  5. sjarmak
    added a commit that references this issue on Jul 27, 2026

    dgram: support Uint8Array input to send()

    2dc1053
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @TimothyGu
    TimothyGu

Labels

bufferIssues and PRs related to the buffer subsystem.confirmed-bugIssues and PRs for confirmed bugs.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.