Bartosz Dziewoński has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/282475

Change subject: Improve ignoring short-circuited operations
......................................................................

Improve ignoring short-circuited operations

(This is just a check to see if the tests fail when I break this,
patch coming later...)

Change-Id: Id1d5f577b14b6ae6d987ded12689788eb7922474
---
A tests/parserTests/shortcircuit.r
A tests/parserTests/shortcircuit.t
2 files changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/AbuseFilter 
refs/changes/75/282475/1

diff --git a/tests/parserTests/shortcircuit.r b/tests/parserTests/shortcircuit.r
new file mode 100644
index 0000000..4736e08
--- /dev/null
+++ b/tests/parserTests/shortcircuit.r
@@ -0,0 +1 @@
+MATCH
diff --git a/tests/parserTests/shortcircuit.t b/tests/parserTests/shortcircuit.t
new file mode 100644
index 0000000..bec088f
--- /dev/null
+++ b/tests/parserTests/shortcircuit.t
@@ -0,0 +1,2 @@
+/* The division by zero should not be executed and not crash the filter */
+true | 1/0

-- 
To view, visit https://gerrit.wikimedia.org/r/282475
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id1d5f577b14b6ae6d987ded12689788eb7922474
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/AbuseFilter
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <matma....@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to