Anonymous | Login | Signup for a new account | 11-24-2024 13:13 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | |||||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
0005973 | [Quercus] | crash | sometimes | 01-14-16 13:28 | 01-14-16 13:28 | |||||||
Reporter | bjpeter | View Status | public | |||||||||
Assigned To | ||||||||||||
Priority | normal | Resolution | open | |||||||||
Status | new | Product Version | ||||||||||
Summary | 0005973: IndexOutOfBoundsException | |||||||||||
Description |
This bug manifests itself in version 4.0.39 of Quercus. Every now and then, we see this stack trace in our log file: Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 770 at java.lang.String.charAt(String.java:646) at com.caucho.quercus.lib.db.PDOStatement.parseQueryString(PDOStatement.java:147) at com.caucho.quercus.lib.db.PDOStatement.<init>(PDOStatement.java:103) at com.caucho.quercus.lib.db.PDO.prepare(PDO.java:514) at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.caucho.quercus.env.JavaMethod.invoke(JavaMethod.java:105) ... 119 more |
|||||||||||
Additional Information | After looking at the source code for the PDOStatement class (version 4.0.39), I noticed there is no check if i is less than the length of the query string. There is a check before the call to the charAt method on line 185. | |||||||||||
Attached Files | ||||||||||||
|
There are no notes attached to this issue. |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
26 total queries executed. 24 unique queries executed. |