Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] 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 Platform
Status new   OS
Projection none   OS Version
ETA none Fixed in Version Product Version
  Product Build
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
Steps To Reproduce
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

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
01-14-16 13:28 bjpeter New Issue


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
26 total queries executed.
24 unique queries executed.
Powered by Mantis Bugtracker