summaryrefslogtreecommitdiff
path: root/menuselect
diff options
context:
space:
mode:
authorWalter Doekes <walter+asterisk@wjd.nu>2015-07-02 12:16:26 +0200
committerWalter Doekes <walter+asterisk@wjd.nu>2015-07-02 05:24:43 -0500
commit40274e365289ba87dde39799ee46e602128ce3ec (patch)
tree9c5609a22832d06d8aa830297e810dd74f55885c /menuselect
parentc12ace3ab31bd61606252f5a3721ce720d2ad209 (diff)
astfd: Fix buffer overflow in DEBUG_FD_LEAKS.
If DEBUG_FD_LEAKS was used and more file descriptors than the default of 1024 were available, some DEBUG_FD_LEAKS-patched functions would overwrite memory past the fixed-size (1024) fdleaks buffer. This change: - adds bounds checks to __ast_fdleak_fopen and __ast_fdleak_pipe - consistently uses ARRAY_LEN() instead of sizeof() or 1023 or 1024 - stores pointers to constants instead of copying the contents - reorders the fdleaks struct for possibly tighter packing - adds a tiny bit of documentation ASTERISK-25212 #close Change-Id: Iacb69e7701c0f0a113786bd946cea5b6335a85e5
Diffstat (limited to 'menuselect')
0 files changed, 0 insertions, 0 deletions