OSDN Git Service

Fix to prevent SQL injection attacks for code calling setObject(int,Object,int)
authorBarry Lind <barry@xythos.com>
Tue, 22 Jul 2003 05:17:09 +0000 (05:17 +0000)
committerBarry Lind <barry@xythos.com>
Tue, 22 Jul 2003 05:17:09 +0000 (05:17 +0000)
commit0a73f69cb4842f46c1a080b3375b0f268ba1e5de
tree214f1bc657b041e91f7a7002ad20ca4b911e0bac
parent11cb598c397eaa18916c1a0f944f3ead05dab971
Fix to prevent SQL injection attacks for code calling setObject(int,Object,int)
where Object is a user supplied String and the type is a numeric type
(i.e. INTEGER,LONG,etc).
Also applied a patch from Kim Ho that fixes compile problems under jdk1.2

 Modified Files:
  jdbc/org/postgresql/Driver.java.in
  jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
src/interfaces/jdbc/org/postgresql/Driver.java.in
src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java