| Summary: | integer overflow in FSIO.cvSize leads to NegativeArraySizeException | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] M2T | Reporter: | Niko Stotz <eclipse> | ||||||
| Component: | Xpand | Assignee: | Karsten Thoms <karsten.thoms> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | karsten.thoms, sk, sven.efftinge | ||||||
| Version: | 1.0.1 | Flags: | karsten.thoms:
juno+
|
||||||
| Target Milestone: | M3 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Niko Stotz
Niko, could you propose a solution? writeSingleFile(Writer,Reader) in this class already states a possible solution. pick some chunksize and use it instead of doing some fancy calculation to determine a chunksize for reading. neither cvNumerOfFilesRead nor cvSize are effectively used. Created attachment 204749 [details]
Testcase showing the error
Created attachment 204750 [details]
Proposed fixed version of FSIO
The proposed fix is about 25 % faster than the original implementation. Thanks for providing the test case and fix. Had to backport the test to Junit3. Bug resolved before Xpand 1.2 release date => Closing |