Publication Details

Automata with Bounded Repetition in RE2

HOLÍKOVÁ Lenka, HORKÝ Michal and SÍČ Juraj. Automata with Bounded Repetition in RE2. In: Computer Aided Systems Theory - EUROCAST 2022. Heidelberg: Springer Verlag, 2023, pp. 232-239. ISSN 0302-9743.
Czech title
Automaty s omezeným opakováním v RE2
Type
conference paper
Language
english
Authors
Holíková Lenka, Ing. (DITS FIT BUT)
Horký Michal, Ing. (FIT BUT)
Síč Juraj, Mgr. (DITS FIT BUT)
Keywords

RE2, regex, counting-set automata

Abstract

Regular expression (regex) matching has an irreplaceable role in software development. It is a computationally intensive process often applied on large texts. Predictability of its efficiency has a significant impact on the overall usability of software applications in practice. A problem is that standard approaches for regex matching suffer from high worst case complexity. An unlucky combination of a regex and text may increase the matching time by orders of magnitude. This can be a doorway for the so-called Regular Expression Denial of Service (ReDoS) attack in which the attacker causes a denial of service by providing a specially crafted regex or text. We focus on one of the sources of these attacks, which are regex with bounded repetition (e.g., '(ab)100'). Succinct representation and fast matching of such regexes can be archived by using a novel counting-set automaton. We present a C++ implementation of a matching algorithm based on the counting-set automaton. The implementation is done within RE2, which is a fast state-of-the-art regex matcher. We perform experiments on real-life regexes. The experiments show that implementation within the RE2 is faster than the original C# implementation.

Published
2023
Pages
232-239
Journal
Lecture Notes in Computer Science, no. 13789, ISSN 0302-9743
Proceedings
Computer Aided Systems Theory - EUROCAST 2022
Conference
Eurocast 2022 -- 18th International Conference on Computer Aided Systems Theory, Las Palmas de Gran Canaria, Canary Islands, ES
Publisher
Springer Verlag
Place
Heidelberg, DE
DOI
EID Scopus
BibTeX
@INPROCEEDINGS{FITPUB13001,
   author = "Lenka Hol\'{i}kov\'{a} and Michal Hork\'{y} and Juraj S\'{i}\v{c}",
   title = "Automata with Bounded Repetition in RE2",
   pages = "232--239",
   booktitle = "Computer Aided Systems Theory - EUROCAST 2022",
   journal = "Lecture Notes in Computer Science",
   number = 13789,
   year = 2023,
   location = "Heidelberg, DE",
   publisher = "Springer Verlag",
   ISSN = "0302-9743",
   doi = "10.1007/978-3-031-25312-6\_27",
   language = "english",
   url = "https://www.fit.vut.cz/research/publication/13001"
}
Back to top