Skip to content

Possible NPD error  #3711

Closed
Closed
@5hadowblad3

Description

@5hadowblad3

Hi, recently I use fuzzing to check the vim and I find an NPD problem.
In src/libvterm/src/termscreen.c
image
This could return a null pointer for the caller function vterm_obtain_screen and store in the vt->screen.
image
This null screen is return to create_vterm function in src/terminal.c
image
then again in vterm_screen_set_callbacks function defined in src/libvterm/src/termscreen.c
image
The callback function is set to a null pointer screen.
The potential problem is that you can set a callback function to a predefined NULL memory address which might lead to more problem.

I wonder this is a true problem in vim or not, could you help to verify it?

I am looking 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