Skip to content

ngx_client模块地址拷贝错误导致踩内存 #94

Description

@xbc112233

ngx_client_connect_server函数里面,
s->peer.sockaddr = ngx_pcalloc(s->pool, sizeof(socklen)); 这个是笔误吧?
应该是
s->peer.sockaddr = ngx_pcalloc(s->pool, socklen);
不然后面memcpy就覆盖内存了

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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