From: Justin Viiret Date: Wed, 10 Feb 2016 04:33:48 +0000 (+1100) Subject: Dump: don't call dumpNfaNotes for SOM reverse NFAs X-Git-Tag: v4.2.0^2~151 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42d34f19d15272d6d28fff0ffe4cb8da90ee4a64;p=thirdparty%2Fvectorscan.git Dump: don't call dumpNfaNotes for SOM reverse NFAs These NFAs have no queue index. --- diff --git a/src/rose/rose_dump.cpp b/src/rose/rose_dump.cpp index e803b8c4..25c6e77d 100644 --- a/src/rose/rose_dump.cpp +++ b/src/rose/rose_dump.cpp @@ -679,7 +679,7 @@ void dumpRevComponentInfo(const RoseEngine *t, const string &base) { ss << base << "som_rev_components.txt"; ofstream fout(ss.str().c_str()); - fout << "Index Offset\tEngine \tStates S.State Bytes Notes\n"; + fout << "Index Offset\tEngine \tStates S.State Bytes\n"; const char *tp = (const char *)t; const u32 *rev_offsets = (const u32 *)(tp + t->somRevOffsetOffset); @@ -696,17 +696,13 @@ void dumpRevComponentInfo(const RoseEngine *t, const string &base) { fout << left << setw(6) << n->nPositions << " "; fout << left << setw(7) << n->streamStateSize << " "; - fout << left << setw(7) << n->length << " "; - - dumpNfaNotes(fout, t, n); - + fout << left << setw(7) << n->length; fout << endl; } } static void dumpRevNfas(const RoseEngine *t, bool dump_raw, const string &base) { - const char *tp = (const char *)t; const u32 *rev_offsets = (const u32 *)(tp + t->somRevOffsetOffset);