author | Holger Weiss <holger@zedat.fu-berlin.de> | |
Mon, 1 Jun 2009 23:11:19 +0000 (01:11 +0200) | ||
committer | Holger Weiss <holger@zedat.fu-berlin.de> | |
Mon, 1 Jun 2009 23:11:19 +0000 (01:11 +0200) | ||
commit | 9eabd8d054f003960daa150324873474df7aab60 | |
tree | caaa3068532fb457959fb6812bf53a61d4c1968a | tree | snapshot |
parent | bc827c9083cdf7e6b4e6931f2eecfa7192baa48f | commit | diff |
Fix the memory allocation for the thresholds data
Allocate the appropriate amount of memory for storing the thresholds
data. Before, we allocated the amount of memory required for storing a
_pointer_ to the thresholds data. This crashed (at least) check_mysql
when using its "-S" option on FreeBSD/amd64 (as reported and analyzed by
Nikita Kalabukhov - 2797757).
Signed-off-by: Holger Weiss <holger@zedat.fu-berlin.de>
Allocate the appropriate amount of memory for storing the thresholds
data. Before, we allocated the amount of memory required for storing a
_pointer_ to the thresholds data. This crashed (at least) check_mysql
when using its "-S" option on FreeBSD/amd64 (as reported and analyzed by
Nikita Kalabukhov - 2797757).
Signed-off-by: Holger Weiss <holger@zedat.fu-berlin.de>
THANKS.in | diff | blob | history | |
lib/utils_base.c | diff | blob | history |