BUG/MINOR: lua: set buffer size during map lookups
authorThierry Fournier <thierry.fournier@ozon.io>
Tue, 10 Nov 2020 19:38:20 +0000 (20:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 11 Nov 2020 09:43:21 +0000 (10:43 +0100)
commit91dc0c0d8fdc2fb091b49699ebb323d01aa1d9f6
tree3c2a322678f4b9245fd9a2be9c4a3c007bf8fd57
parenta68affeaa9377f88f773ef62a9bb2541dfb672d3
BUG/MINOR: lua: set buffer size during map lookups

This size is used by some pattern matching to determine if there
is sufficient room in the buffer to add final \0 if necessary.
If the size is not set, the conditions use uninitialized value.

Note: it seems this bug can't cause a crash.

Should be backported until 2.2 (at least)
src/hlua.c