Open jay900323 opened 5 years ago
Is this crashing only occurring since versions 3.3.0? We recently updated from 3.2.0 to 3.3.0 and we're seeing analysisd crashes roughly every 24-48 hours. About to setup monit in order to start issues ossec-control stop/start in the meantime.
Look at line 1003 of the file analysisd.c. When a rule with if_matched_sid tag is triggered and the maximum length of the sid_prev_matched list is set, the event node in sid_prev_matched is deleted before the function Free_Eventinfo, which will cause a crash.
Resolvent:
Modify line 1007 of the file src/analysisd/analysisd.c
Add a function to the analysisd.c file