Closed Bug 923768 Opened 11 years ago Closed 11 years ago

Quadratic Blowup test is broken

Categories

(L20n :: JS Library, defect)

x86_64
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stas, Assigned: zbraniecki)

Details

Attachments

(1 file, 1 obsolete file)

It should be moved to tests/parser/insecure.  One of my patches in bug 918655 made that change, but maybe it wasn't git-added prior to landing?
Flags: needinfo?(gandalf)
Gandalf, did you have a reason for not landing it or was it just an omission?
The test was removed by your patch, not readded. No reason, I believe I was confused as I was trying to apply your version of the patch against my branch.
Flags: needinfo?(gandalf)
It was readded in https://bugzilla.mozilla.org/attachment.cgi?id=811531&action=diff#a/tests/lib/parser/insecure/dos.js_sec2.  Can you please prepare a patch that adds it on master?
Assignee: nobody → gandalf
Target Milestone: --- → 1.0
Stas, it seems that the file is on master, here: https://github.com/l20n/l20n.js/blob/master/tests/lib/compiler/insecure/dos.js

Should I close this bug?
Flags: needinfo?(stas)
No.

I think that what we need is to split that file into two tests:

  tests/lib/compiler/insecure/dos.js with the Billion Laughs test
  tests/lib/parser/insecure/dos.js with the Quadratic Blowup test

That's what my patch that I mentioned in comment 3 did.
Flags: needinfo?(stas)
Attached patch 923461.patch (obsolete) — Splinter Review
Attachment #820388 - Flags: review?(stas)
Comment on attachment 820388 [details] [diff] [review]
923461.patch

Review of attachment 820388 [details] [diff] [review]:
-----------------------------------------------------------------

It looks like this is not the right patch?
Attachment #820388 - Flags: review?(stas) → review-
Attached patch bug923768.diffSplinter Review
Gosh... today is not a good day for me.

Apologies again Stas.
Attachment #820388 - Attachment is obsolete: true
Attachment #820611 - Flags: review?(stas)
Comment on attachment 820611 [details] [diff] [review]
bug923768.diff

Review of attachment 820611 [details] [diff] [review]:
-----------------------------------------------------------------

No worries, and thanks for fixing this!
Attachment #820611 - Flags: review?(stas) → review+
https://github.com/l20n/l20n.js/commit/59039cd21a4f51d86d36b7143be5f8986f32bc4e
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: