Possible bug, so newbie I'm not even sure ;)

7 views
Skip to first unread message

Andres Riancho

unread,
Jul 28, 2008, 4:25:19 PM7/28/08
to java2python-discuss
List,

I think I found a bug, but I'm such a java2python AND java newbie
that I'm not even sure:

dz0@sock3t:/tmp/Pixy/src/at/ac/tuwien/infosys/www/pixy$ j2py -i
XSSAnalysis.java -o XSSAnalysis.py
syntax error: unexpected symbol at line 38 (column 12): "List"
*** exception while parsing:
<AST>:41:9:
dz0@sock3t:/tmp/Pixy/src/at/ac/tuwien/infosys/www/pixy$

The offending code is:

"""
// if all these nodes belong to variables that are initially
harmless,
// everything is OK; otherwise, we have a vulnerability
public List<Integer> detectVulns() {

System.out.println();
"""

And my versions are:

$ python -V
Python 2.5.2

$ dpkg -l antlr
||/ Name
Version Description
+++-=================================-
=================================-
==================================================================================
ii antlr
2.7.6-10 language tool for constructing
recognizers, compilers

The full source code of what I'm trying to translate is available
at http://pixybox.seclab.tuwien.ac.at/pixy/dist/pixy_3_03.zip

Is this a bug?

Cheers,

Troy Melhase

unread,
Jul 28, 2008, 4:28:35 PM7/28/08
to java2pyth...@googlegroups.com
> // everything is OK; otherwise, we have a vulnerability
> public List<Integer> detectVulns() {

That's not a bug, but I wish it was.

That's java 5 syntax. No support for that yet in j2py.

Andres Riancho

unread,
Jul 28, 2008, 4:30:10 PM7/28/08
to java2pyth...@googlegroups.com
Troy,

hmmm...
Things are starting to get complicated with this port of pixy .... hmmm...

Cheers,

> >
>

--
Andres Riancho
http://w3af.sourceforge.net/
Web Application Attack and Audit Framework

Reply all
Reply to author
Forward
0 new messages