Skip to content

buffer size may be too small #269

@akf00000

Description

@akf00000

In function ngx_http_vhost_traffic_status_display_get_size,we calculate the buffer size,the max name size default is 1024(un * 1024),but in function ngx_http_vhost_traffic_status_shm_add_node,we add a vts node and set vtsn->len = (u_short) key->len,so the vtsn->len max value is 65535. this will cause memory out of bounds,when we call status cmd,because the buffer size we calculate may be too small.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions