<p dir="ltr">Hi,</p>
<p dir="ltr">Dfa_state_cache does not follow its max size limit and it can run over this limit quite easily. I am not sure what kind of data are stored in the cache, so I am hesitant to fix the bug. Could you please take a look at it with relation to file analyzer?</p>
<p dir="ltr">I use bro 2.3-397. In one of the protocol analyzers, I call file_mgr-&gt;DataIn() and later file_mgr-&gt;EndOfFile(). Valgrind shows that if you run it on traffic with a lot of files to analyze, memory builds (and is not freed) at this path:</p>
<p dir="ltr">file_analysis::File::DetectMime() (File.cc:304)<br>
file_analysis::Manager::DetectMime<br>
RuleMatcher::Match<br>
RE_Match_State::Match<br>
DFa_State::Xtion<br>
DFA_State::ComputeXtion<br>
DFA_Machine::StateSetToDFA_State<br>
DFA_State::DFA_State</p>
<p dir="ltr">Any hint how to fix DFA_State and RE.cc?<br>
Thank you, <br>
Martina</p>