Skip to content

Potential NPD in function format_cb_pane_tabs in source file format.c #1547

@wurongxin1987

Description

@wurongxin1987

image
The above code is in the function format_cb_pane_tabs in the source file format.c. It will lead to potential NPD problem. In Line 590, the library function evbuffer_new() is likely to return null pointer (See the below figures). In Line 595, in the library function EVBUFFER_LENGTH (which is actually evbuffer_get_length), buffer will be passed into it and dereferenced (See the below figures).

image
image

The above two figures are the source code in libevent. By looking into this, I suspect this should be a potential NPD bug. Can you help to confirm whether this is a true bug?

Thanks very much. Look forward to your reply.

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