From: Justin Viiret Date: Tue, 2 May 2017 00:20:59 +0000 (+1000) Subject: smallwrite: remove unnecessary assertion X-Git-Tag: v4.5.0^2~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a417c42e5cfb8a726254853493b13e12ffc2ee3;p=thirdparty%2Fvectorscan.git smallwrite: remove unnecessary assertion The alpha remap array is always big enough to remap characters. Silences Coverity issue CID 167663. --- diff --git a/src/smallwrite/smallwrite_build.cpp b/src/smallwrite/smallwrite_build.cpp index 43900207..bb933cbe 100644 --- a/src/smallwrite/smallwrite_build.cpp +++ b/src/smallwrite/smallwrite_build.cpp @@ -698,7 +698,6 @@ unique_ptr buildDfa(LitTrie &trie, bool nocase) { continue; } auto v_state = state_ids.at(v); - assert((u16)trie[v].c < alpha.size()); u16 sym = alpha[trie[v].c]; DEBUG_PRINTF("edge to %u on 0x%02x (sym %u)\n", v_state, trie[v].c, sym);