Skip to content

Bug Report: Uninitialized Buffer res in rpc_iwinfo_scan() May Cause Garbage Data #14

@limao-cpu

Description

@limao-cpu

In the rpc_iwinfo_scan() function of rpcd, the local buffer res is defined but not explicitly initialized:
char res[IWINFO_BUFSIZE];
This buffer is reused multiple times during the scan process. Without proper initialization (e.g., memset), this may lead to garbage data or leftover content from previous iterations, especially if the content length varies across calls.

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