]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: lua: remove hard-coded sizeof() in object creations and mallocs
authorWilly Tarreau <w@1wt.eu>
Mon, 6 Apr 2015 08:59:20 +0000 (10:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Apr 2015 08:59:20 +0000 (10:59 +0200)
commit07081fe6b70a9448dc91179ab76499e183c1d459
tree133a157a88e6f4b581e059b7b22e9bc0e48f6f67
parent08ef3d055d7e67ec08660bb3da2487326f02d704
CLEANUP: lua: remove hard-coded sizeof() in object creations and mallocs

Last bug was an example of a side effect of abuse of copy-paste, but
there are other places at risk, so better fix all occurrences of sizeof
to really reference the object size in order to limit the risks in the
future.
src/hlua.c