Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.
This repository was archived by the owner on May 31, 2025. It is now read-only.

Coverity report potential string overflow in transport_udp.cpp #1735

@danielwangksu

Description

@danielwangksu

Using Coverity static analysis tool report a potential string overflow in the following code:

(10) Event fixed_size_dest: You might overrun the 128-character fixed-size string "namebuf" by copying the return value of "inet_ntoa" without checking the length.

strcpy(namebuf, inet_ntoa(sin->sin_addr));

(12) Event fixed_size_dest: | You might overrun the 128-character fixed-size string "namebuf" by copying the return value of "inet_ntoa" without checking the length.

strcpy(namebuf, inet_ntoa(sin->sin_addr));

(15) Event fixed_size_dest: | You might overrun the 128-character fixed-size string "namebuf" by copying the return value of "inet_ntoa" without checking the length.

strcpy(namebuf, inet_ntoa(address->sin_addr));

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