|
Mantis - Quercus
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 2607 | major | always | 04-15-08 07:41 | 04-16-08 10:29 | |
|
|
|||||
| Reporter: | sgraf | Platform: | |||
| Assigned To: | nam | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | 3.1.6 | ||
| Product Build: | Latest SVN Build | Resolution: | fixed | ||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | 3.1.6 | ||
|
|
|||||
| Summary: | 0002607: StringBuilderValuer.append(Reader reader, long length) fails with IndexOutOfBoundsException | ||||
| Description: |
At line 1176 int sublen = Math.min(8192, (int)length); Will cast length to int but lenght is a long and this cast may result in a negative integer which in turn will be smaller then 8192. To correct this proble change this line to int sublen = (int) Math.min(8192L, length); Path file is attached. |
||||
| Steps To Reproduce: |
Call StringBuilderValuer.append(Reader reader, long length) with a long value larger them Integer.MAX_VALUE Example: StringBuilderValuer.append(reader, Long.MAX_VALUE) |
||||
| Additional Information: | Related to issue 0002026 | ||||
| Relationships | |||||
| Attached Files: |
|
||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||