[CONJ-248] StackOverflowError / infinite recursion in MariaDbCallableStatement.setBinaryStream Created: 2016-01-22  Updated: 2016-02-11  Resolved: 2016-02-11

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: all
Fix Version/s: 1.3.5

Type: Bug Priority: Critical
Reporter: Eric Grunzke Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

Perhaps I'm missing something, but how can this code do anything besides infinitely recurse?

    public void setBinaryStream(int parameterIndex, InputStream stream) throws SQLException {
        setBinaryStream(parameterIndex, stream);
    }

See it in source at https://github.com/MariaDB/mariadb-connector-j/blob/master/src/main/java/org/mariadb/jdbc/MariaDbCallableStatement.java#L981



 Comments   
Comment by Diego Dupin [ 2016-01-25 ]

Totally right !
your pull request https://github.com/MariaDB/mariadb-connector-j/pull/68 seems to correct that,
I will just had some test cases to validate that is working now

Generated at Thu Feb 08 03:14:16 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.