Bug 70842 - NegativeIndex exception in the PE binary Parser
Summary: NegativeIndex exception in the PE binary Parser
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows All
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Alain Magloire CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-26 14:22 EDT by Alain Magloire CLA
Modified: 2004-07-26 14:28 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alain Magloire CLA 2004-07-26 14:22:42 EDT
------- Additional Comment #7 From Hasse  2004-07-19 02:16 -------

I'm getting kind of the same error.
Only I get the "NegativeArraySizeException"
when importing a large CDT project as 4526 files, 848 folders.
Using WinXp and Eclipse 3.0 Finale with CDT 2.0 Finale.
This project I'm importing has 52 exe files and 55 dll files.
Removing the exe files and do the import again fixes the error.
Here's the error. (dunno maybe i should call in a new bug report) 

An error occurred while traversing resources.
java.lang.NegativeArraySizeException
org.eclipse.cdt.utils.coff.PE.getAttribute(PE.java:496)
org.eclipse.cdt.utils.coff.parser.PEParser.getBinary(PEParser.java:50)
org.eclipse.cdt.internal.core.model.CModelManager.createBinaryFile
(CModelManager.java:550)
org.eclipse.cdt.internal.core.model.BinaryRunner.addChildIfBinary
(BinaryRunner.java:116)
org.eclipse.cdt.internal.core.model.BinaryRunner$Visitor.visit
(BinaryRunner.java:141)
org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:108)
org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:55)
org.eclipse.core.internal.watson.ElementTreeIterator.doIteration
(ElementTreeIterator.java:78)
org.eclipse.core.internal.watson.ElementTreeIterator.doIteration
(ElementTreeIterator.java:82)
org.eclipse.core.internal.watson.ElementTreeIterator.doIteration
(ElementTreeIterator.java:82)
org.eclipse.core.internal.watson.ElementTreeIterator.doIteration
(ElementTreeIterator.java:82)
org.eclipse.core.internal.watson.ElementTreeIterator.doIteration
(ElementTreeIterator.java:82)
org.eclipse.core.internal.watson.ElementTreeIterator.doIteration
(ElementTreeIterator.java:82)
org.eclipse.core.internal.watson.ElementTreeIterator.iterate
(ElementTreeIterator.java:123)
org.eclipse.core.internal.resources.Resource.accept(Resource.java:65)
org.eclipse.core.internal.resources.Resource.accept(Resource.java:106)
org.eclipse.core.internal.resources.Resource.accept(Resource.java:85)
org.eclipse.cdt.internal.core.model.BinaryRunner$1.run(BinaryRunner.java:59)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
Comment 1 Alain Magloire CLA 2004-07-26 14:28:55 EDT
Fix in head and the branch

Thanks Hasse.