Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stage 1.0.7/v1 #228

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ language: python

python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 1.0.7 - YYYY-MM-DD
- Better error on bad modify filter:
https://redmine.openinfosecfoundation.org/issues/3536

## 1.0.6 - 2019-12-11
- If Suricata is less than 5, and Rust is not enabled, disable smb
rules as they require
Expand Down
12 changes: 7 additions & 5 deletions suricata/update/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,11 +448,13 @@ def load_filters(filename):
line = line.rsplit(" #")[0]

line = re.sub(r'\\\$', '$', line) # needed to escape $ in pp
filter = ModifyRuleFilter.parse(line)
if filter:
filters.append(filter)
else:
log.error("Failed to parse modify filter: %s" % (line))
try:
rule_filter = ModifyRuleFilter.parse(line)
if rule_filter:
filters.append(rule_filter)
except Exception as err:
raise exceptions.ApplicationError(
"Failed to parse modify filter: {}".format(line))

return filters

Expand Down
2 changes: 1 addition & 1 deletion suricata/update/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# Alpha: 1.0.0a1
# Development: 1.0.0.dev0
# Release candidate: 1.0.0rc1
version = "1.0.6"
version = "1.0.7"
2 changes: 1 addition & 1 deletion tox-integration.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.

[tox]
envlist = py27, py34, py35, py36, py37
envlist = py27, py35, py36, py37

[testenv]
commands = python ./tests/integration_tests.py
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.

[tox]
envlist = py27, py34, py35, py36, py37
envlist = py27, py35, py36, py37

[testenv]
commands = pytest
Expand Down