nats-io / nats.c

A C client for NATS
Apache License 2.0
390 stars 137 forks source link

[FIXED] natsConnection_Connect can get stuck and consume all memory #707

Closed kozlovic closed 9 months ago

kozlovic commented 9 months ago

If an error occurs when reading a protocol message during the connect phase, the library could spin appending a character into a buffer until the process would run out of memory.

Resolves #706

Signed-off-by: Ivan Kozlovic ivan@synadia.com

kozlovic commented 9 months ago

@levb One of travis' failure is due to an Ubuntu bug. See PR: https://github.com/nats-io/nats.c/pull/708