Mantis Bugtracker

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(
    at com.caucho.quercus.lib.db.PDOStatement.parseQueryString(
    at com.caucho.quercus.lib.db.PDOStatement.<init>(
    at com.caucho.quercus.lib.db.PDO.prepare(
    at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at com.caucho.quercus.env.JavaMethod.invoke(
    ... 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

- 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