Files
asterisk/main
Walter Doekes 028554faab 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
2015-07-02 12:22:55 +02:00
..
2015-04-12 13:59:44 -05:00
2015-04-12 13:49:40 -05:00
2012-06-15 16:20:16 +00:00
2014-11-02 08:03:18 +00:00
2012-03-24 02:42:42 +00:00
2012-06-15 16:20:16 +00:00
2014-10-10 12:55:56 +00:00
2015-04-06 18:58:30 +00:00
2012-06-15 16:20:16 +00:00
2015-06-04 20:07:26 +02:00
2012-03-22 19:51:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2015-04-06 18:58:30 +00:00
2012-03-22 19:51:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2013-09-10 17:56:56 +00:00
2014-05-09 22:28:40 +00:00
2012-04-28 01:33:49 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-03-22 19:51:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00