From 29847ff094c7cfbaeee2f1c1110e9c36f881847e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Pecka?= <peckato1@fit.cvut.cz>
Date: Sun, 30 Mar 2014 13:27:15 +0200
Subject: [PATCH] aconversion: workaround for issue #22

---
 aconversions/src/re2fa/Brzozowski.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/aconversions/src/re2fa/Brzozowski.cpp b/aconversions/src/re2fa/Brzozowski.cpp
index 90f33ce024..6c21e136b1 100644
--- a/aconversions/src/re2fa/Brzozowski.cpp
+++ b/aconversions/src/re2fa/Brzozowski.cpp
@@ -68,7 +68,11 @@ FSM Brzozowski::convert( void )
             }
         }
 
-        Q.insert( Qi.at( i ).begin( ), Qi.at( i ).end( ) );
+        // sometimes crashes upon regexp comparsion - ?? issue #22
+        // Q.insert( Qi.at( i ).begin( ), Qi.at( i ).end( ) );
+        for( const auto & r : Qi.at( i ) )
+            Q.insert( r );
+
         i += 1;
     }
 
-- 
GitLab