keeps / dbptk-developer

DBPTK Developer - library and command-line tool for execution of database preservation actions
http://www.database-preservation.com
GNU Lesser General Public License v3.0
43 stars 19 forks source link

Inefficient regular expression #611

Open luis100 opened 4 months ago

luis100 commented 4 months ago

https://github.com/keeps/dbptk-developer/blob/aa0c8933ca363d7a8734fc33bdc1b5c751e36526/dbptk-modules/dbptk-module-siard/src/main/java/com/databasepreservation/modules/siard/out/metadata/TableIndexFileStrategy.java#L56-L56

This part of the regular expression: (_|\\w)* may cause exponential backtracking on strings containing many repetitions of '_'.

See code scanning issue and solution recommendation at: