Changeset 81
- Timestamp:
- Jan 13, 2007, 8:29:53 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_database.c
r76 r81 1535 1535 do 1536 1536 { 1537 if (*p <= 0x7F)1537 if (*p <= 126 && *p >= 32) 1538 1538 { 1539 1539 if (escp == 0) 1540 1540 { 1541 if (!((*p == '\'') || (*p == '\"') || (*p != '\\')))1541 if (!((*p == '\'') || (*p == '\"') || (*p == '\\'))) 1542 1542 /* do nothing */; 1543 else if (*p == '\\') escp = 1; 1544 else retv = S_FALSE; /* (*p == '\'' || *p == '\"') */ 1543 else if (*p == '\\') 1544 escp = 1; 1545 else 1546 retv = S_FALSE; /* (*p == '\'' || *p == '\"') */ 1545 1547 } 1546 1548 else /* escp == 1 */ … … 1549 1551 } 1550 1552 } 1551 else /* *p > 0x7F*/1553 else /* *p > 126 || *p < 32 */ 1552 1554 { 1553 1555 retv = S_FALSE; -
trunk/src/sh_tools.c
r34 r81 213 213 ++p; 214 214 215 if (c < 3 1|| c > 126)215 if (c < 32 || c > 126) 216 216 { 217 217 --i; -
trunk/test/testrun_1b.sh
r60 r81 180 180 # 181 181 tmp=`egrep 'File original:.*name=etc.*path=/etc' test_log_prelude 2>/dev/null | wc -l` 182 if [ $tmp - ne1 ]; then182 if [ $tmp -lt 1 ]; then 183 183 [ -z "$verbose" ] || log_msg_fail "/etc"; 184 184 fi 185 185 tmp=`egrep 'Classification text: Checking' test_log_prelude 2>/dev/null | wc -l` 186 if [ $tmp - ne1 ]; then186 if [ $tmp -lt 1 ]; then 187 187 [ -z "$verbose" ] || log_msg_fail "checking"; 188 188 fi 189 189 tmp=`egrep 'Classification text: Checking' test_log_prelude 2>/dev/null | wc -l` 190 if [ $tmp - ne1 ]; then190 if [ $tmp -lt 1 ]; then 191 191 [ -z "$verbose" ] || log_msg_fail "checking"; 192 192 fi -
trunk/test/testrun_2c.sh
r51 r81 28 28 29 29 rm -f test_log_db 30 # 30 31 echo "SELECT * FROM log WHERE entry_status = 'NEW' and log_time > '"${DATE}"';" | mysql --password=samhain -u samhain samhain >test_log_db 31 32 #
Note:
See TracChangeset
for help on using the changeset viewer.