Skip to content

Comments

Fixed memory error on CDB lists management#855

Merged
ddpbsd merged 1 commit intoossec:masterfrom
wazuh:fix_cdblists
May 27, 2016
Merged

Fixed memory error on CDB lists management#855
ddpbsd merged 1 commit intoossec:masterfrom
wazuh:fix_cdblists

Conversation

@vikman90
Copy link
Contributor

When cdb_read() gets less bytes than vlen, there is no end-of-string and OS_MatchExecute() deals with uninitialized memory. Valgrind warns about this, and sometimes analysisd produces a segmentation fault when tries to match with a rule that references a CDB list with value checking.

This should fix this problem.

@ddpbsd ddpbsd merged commit 09a37a5 into ossec:master May 27, 2016
@vikman90 vikman90 deleted the fix_cdblists branch May 27, 2016 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants