Skip to content

Two bugs may lead to NULL dereference. #15006

@tluio

Description

@tluio
  1. sys/pipe/pipe_dynamic.c
    If malloc returns NULL on line 41, the variable m_pipe will be NULL, but the pointer to m_pipe->pipe is returned on line 46.

  2. drivers/usbdev_mock/usbdev_mock.c
    The variable res is checked on line 88 which indicates that it can be NULL, but the pointer to res->ep is returned on line 97.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: USBArea: Universal Serial BusArea: driversArea: Device driversType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions