[ZBX-5988] Memory leaking occurs in evaluate_LOGEVENTID() and evaluate_STR() Created: 2012 Dec 13 Updated: 2017 May 30 Resolved: 2012 Dec 18 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Proxy (P), Server (S) |
Affects Version/s: | 1.8.15, 2.0.4 |
Fix Version/s: | 1.8.16rc1, 2.0.5rc1, 2.1.0 |
Type: | Incident report | Priority: | Major |
Reporter: | Takanori Suzuki | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | memoryleak | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Zabbix Server 1.8.15/2.0.4 in Linux 32/64bit |
Attachments: | zabbix-1.8.15-fix_evaluate_STR_LOGEVENTID_memory_leak.patch zabbix-2.0.4-fix_evaluate_STR_LOGEVENTID_memory_leak.patch |
Description |
Memory leaking occurs in evaluate_LOGEVENTID() and evaluate_STR(). Zabbix Server memory leaks in evaluate_STR() and evaluate_LOGEVENTID() in "src/libs/zbxserver/evalfunc.c". evaluate_STR() and evaluate_LOGEVENTID() are called when using "regexp()", "iregexp()", "logeventid()" trigger functions with "@" type regexp. I made patches for zabbix-1.8.15 and zabbix-2.0.4. |
Comments |
Comment by Andris Mednis [ 2012 Dec 18 ] |
For v.1.8 fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-5988 |
Comment by Alexander Vladishev [ 2012 Dec 22 ] |
Successfully tested! In 2.0 and trunk should be fixed in lld.c:2278 too. Andris lld.c fixed in r32339 |
Comment by Andris Mednis [ 2012 Dec 28 ] |
Fixed in versions pre-1.8.16 rev. 32340, pre-2.0.5 rev. 32341 and pre-2.1.0 rev. 32342 |