]> git.kaiwu.me - haproxy.git/commit
[BUG] str2sun could leak a small buffer in case of error during parsing
authorWilly Tarreau <w@1wt.eu>
Fri, 7 Mar 2008 09:07:04 +0000 (10:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 8 Mar 2008 20:59:10 +0000 (21:59 +0100)
commit4415cb391d3578fb051a4ba447dbd6060480de8a
tree9d2ee9f5249f2b32c662609811bc2ff5f1c2c914
parent92bce7baebedc95e0daebc67ab81803d2776574f
[BUG] str2sun could leak a small buffer in case of error during parsing

Matt Farnsworth reported a memory leak in str2sun() in case a too large
socket path is passed. The bug is very minor because it only happens
once during config parsing, but has to be fixed nevertheless. The patch
Matt provided could even be improved by completely removing the useless
strdup() in this function.
(cherry picked from commit caf720d3ff7758273278aecab26bb7624ec2f555)
include/common/standard.h
src/standard.c