Closed Bug 6880 Opened 26 years ago Closed 26 years ago

xpt_link goes into infinite loop

Categories

(Core :: XPCOM, defect, P3)

All
Windows NT
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: jband_mozilla, Assigned: mike+mozilla)

Details

create two idl files: foo.idl and foo2.idl contents of foo.idl: [uuid(1a6e4140-0efb-11d3-babb-00805f8a5dd7)] interface foo{}; contents of foo2.idl interface foo{}; run: xpidl -m typelib foo.idl xpidl -m typelib foo2.idl xpt_link.exe out.xpt foo.xpt foo2.xpt The linker should detect a problem. Instead it goes into an infinite loop in the 'while' loop starting at about line 262
Thanks for catching this. I noticed a similar bug during some earlier forward-decl hacking.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Fixed; the loop to iterate through all the interfaces and remove redundant unresolved interfaces was missing an else clause for the case where the name and namespace matched but the iids differed. It now produces a friendly, informative error message.
Component: xpidl → XPCOM
QA Contact: mike+mozilla → xpcom
You need to log in before you can comment on or make changes to this bug.