Skip to content
Snippets Groups Projects
Commit df321d9d authored by an7s's avatar an7s
Browse files

Only allow alphanumerics in table names

Former-commit-id: 83af45fe56924d96f6898f0ac9cd521028f70f30
parent f9de5666
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ PROGRAM_NAME=`basename $PROGRAM_NAME`
DB_SCRIPT=$$.script.tmp
PROGRAM_NAME=`echo $PROGRAM_NAME | sed "s/[\.;,+\\ -\ #]/_/g"`
PROGRAM_NAME=`echo $PROGRAM_NAME | sed "s/[^a-zA-Z0-9]/_/g"`
cat $PEASOUP_HOME/tools/db/pdb.createprogram.tbl | sed "s/#PROGNAME#/$PROGRAM_NAME/g" > $DB_SCRIPT
......
......@@ -397,7 +397,7 @@ perform_step concolic $PEASOUP_HOME/tools/do_concolic.sh a -t 600 -u 60 -i 25 -
#
# get some simple info for the program
#
DB_PROGRAM_NAME=`basename $orig_exe.$$ | sed "s/[\.;+\\-\ ]/_/g"`
DB_PROGRAM_NAME=`basename $orig_exe.$$ | sed "s/[^a-zA-Z0-9]/_/g"`
MD5HASH=`md5sum $newname.ncexe | cut -f1 -d' '`
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment