mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-15 10:40:41 -07:00
With this test, and with previous cloneArg() code, the parsing will cause subject to become "fff" because c.pa.subject points to somewhere in the underlying buffer that is now overwritten with the body payload. With proper cloneArg(), the c.pa.subject (and other) point to the copy of argBuf. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
17 KiB
17 KiB