Skip to content

A Potential Bug of NPD #3312

@ash1852

Description

@ash1852

Hi, I found a potential null pointer dereference bug in the project source code of tmux, and I have shown the execution sequence of the program that may generate the bug on the graph below. The red text illustrates the steps that generate the bug

image

I think I do not need to provide more specific information in this bug to explain why the function bufferevent_new returns null, because some code snippets can already be seen in the current version of the code as follows

tmux/format.c

Lines 523 to 526 in 038dfb2

buffer = evbuffer_new();
if (buffer == NULL)
fatalx("out of memory");

I look forward to your reply and thank you very much for your patience!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions