New issue
Advanced search Search tips

Issue 800297 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Regex expression test function makes Chrome freeze

Reported by clement....@finanzero.com.br, Jan 9 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

Steps to reproduce the problem:
1. var regex = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
2. regex.test("testesdeho.mologacaofintechcbss@");
3. 

What is the expected behavior?
Must return false

What went wrong?
Chrome is freezing

Did this work before? N/A 

Chrome version: 63.0.3239.132  Channel: stable
OS Version: 16.04
Flash Version:
 

Comment 1 by woxxom@gmail.com, Jan 9 2018

It takes 3 seconds to produce "false" on my computer. The regexp interpreter in Chrome seems to dislike the "?" after [\.-], which you can remove as those are redundant as well as "\" for "." inside [].
Labels: Needs-Triage-M63
Components: Platform>DevTools
Labels: TE-NeedsTriageFromHYD Triaged-ET
Unable to reproduce the issue on ubuntu 14.04 and 17.10 using chrome reported version #63.0.3239.132 and latest dev #65.0.3315.3.

Attached a screen shot for reference.

Following are the steps followed to reproduce the issue.
------------
1. Opened console and pasted var regex = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
2. regex.test("testesdeho.mologacaofintechcbss@");
3. Observed that expression returned false after 3 seconds and chrome did not freeze.

As the reported OS version is 16.04 and ET team doesn't have that OS version to reproduce the issue . Hence, forwarding the issue to inhouse team for further investigation.

Thanks...!!
800297.png
859 KB View Download
Status: WontFix (was: Unconfirmed)
Unable to reproduce
Steps to reproduce the problem:

var regex = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
regex.test("testesdeho.mologacaofintechcbss@gmail"); // <--typo

// This freeze Chrome 
// Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

Sign in to add a comment