Skip to content

Potential Memory Leak #3

@ii64

Description

@ii64

enet/host.go

Line 131 in e3453d3

payload := make([]byte, int(pkhdr.Size)-binary.Size(pkhdr))

It is reserve much memory, it also based on the request data which can be remoted and easily crash server.

host bind 127.0.0.1:11771
running...
skipped packet: 136
runtime: VirtualAlloc of 3747053568 bytes failed with errno=1455
fatal error: out of memory

runtime stack:
runtime.throw(0x51b5b4, 0xd)

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