mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-13 09:49:10 +02:00
usermsgs_buf.size is set without first checking if previous malloc attempt succeeded. This could fool the buffer API into assuming that the buffer is initialized, resulting in unsafe read/writes. Guarding usermsgs_buf.size assignment with the malloc attempt result to make the buffer initialization safe against malloc failures. This partially fixes GH #2130. It should be backported up to 2.6.
13 KiB
13 KiB