Closed Bug 1685899 Opened 5 years ago Closed 5 years ago

xpidl.py enters an infinite loop when a constant symbol is not found

Categories

(Core :: XPCOM, task)

task

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: emk, Assigned: emk)

References

Details

Attachments

(1 file)

Steps to reproduce:

#include "nsISupports.idl"
[uuid(7e4c52f2-bece-41b9-8695-27f1240beda9)]
interface nsIFoo : nsISupports {
  const unsigned short X = Y;
};

Actual result:
Build hangs and 100% CPU usage because of an infinite loop.

Expected result:
An error message such as:

 0:13.74 xpidl.xpidl.IDLError: error: cannot find symbol 'Y', f:/m/mozilla-unified/dom/interfaces/base/nsIFoo.idl line 4:27
 0:13.74   const unsigned short X = Y;
 0:13.74                            ^
Assignee: nobody → VYV03354
Status: NEW → ASSIGNED
Blocks: 1685900
Pushed by VYV03354@nifty.ne.jp: https://hg.mozilla.org/integration/autoland/rev/cb79af30c8e5 Fix an infinite loop when a constant identifier is not found. r=nika
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: