Commit Graph

8 Commits

Author SHA1 Message Date
Riccardo Schirone 776732d017 program-model: use module scoped CodeQuery (#665)
* program-model: use module scoped CodeQuery

* fix also sqlite tests

* fix antlr4 test

* wip

* Fix macros test

* appease linting gods

* Fix cleanup routine

---------

Co-authored-by: Henrik Brodin <90325907+hbrodin@users.noreply.github.com>
Co-authored-by: Evan Downing <2077950+evandowning@users.noreply.github.com>
Co-authored-by: Michael D. Brown <michael.brown@trailofbits.com>
2025-05-21 16:40:55 -04:00
Boyan MILANOV bef12fa3f5 Program model: Java type resolution (#613)
* Add basic get_type case

* Add support for dotted expression

* Add tests for method return type resolution

* Add more callees tests

* Lint and format

* Remove residual debug prints

* Commit tree_sitter file too

* Fix test issues from merging main

---------

Co-authored-by: Boyan MILANOV <boyanmilanov@coder-boyanmilanov-aixcc-boyan.c.production-1-405717.internal>
2025-05-19 16:07:34 -04:00
Evan Downing 7c71f0f11e Add additional tests for each existing challenge (#620) 2025-05-19 13:16:57 -04:00
Evan Downing 9c2efa307f Modify get_caller/get_callee arguments (#546)
* Modify get_caller/get_callee arguments

* Fix file_path filter

* Fix caller/callee checking

* Optimize get_caller/get_callee (#605)

* Uncomment log4j tests

* Move all logging to DEBUG

* Fix caller/callee logic
2025-05-14 13:01:20 -04:00
Evan Downing 5c1b2486fc Move challenge fixtures to conftest. (#569) 2025-05-09 16:14:06 -04:00
Boyan MILANOV f55466101f Callee deduplication for C and Java (#495)
* Add basic imports resolver

* Fixes and more tests

* Doc

* Enable C callee dedup in codequery

* Add two libxml2 tests

* Add test to log4j

* Add java callee dedup

* Use container src dir, fix zookeeper tests

* Add test workaround for log4j2

* Lint

---------

Co-authored-by: Boyan MILANOV <boyanmilanov@coder-boyanmilanov-aixcc-boyan.c.production-1-405717.internal>
2025-04-30 14:54:39 +03:00
Evan Downing 93f55a274b Add support for inner classes (#443)
* Change cscope call to compress database and improve lookup speed. Update tests.

* Fix log4j2 source paths

* Add private version of cscope
2025-04-25 07:37:39 -04:00
Evan Downing 73381dbe0e Add support for log4j2 (#406) 2025-04-17 16:28:10 -04:00