Commit Graph

15 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
Evan Downing a23452d473 Add freerdp (#643)
* Add freerdp

* linter fix after merge

---------

Co-authored-by: Michael D Brown <michael.brown@trailofbits.com>
2025-05-20 14:17:53 -04:00
Evan Downing aed41348ce Add dropbear (#645) 2025-05-20 10:26:24 -04:00
Evan Downing 0f02c16c2c Add sqlite (#644) 2025-05-20 10:25:53 -04:00
Evan Downing 9537e58ae6 Add libpng from unscored-2 (#641) 2025-05-20 06:50:23 -04:00
Evan Downing 2d32b44c51 Update libxml2 after unscored-2 (#639) 2025-05-19 21:21:08 -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 d975edf0a9 Add support for commons-codec (#390)
* Add support for commons-codec

* Uncomment passing test

* Move common file. Modify zookeeper and commons_codec tests.
2025-04-17 15:33:22 -04:00
Boyan MILANOV d2bf90e974 [Program-model] C tests for HDF5 (#407)
* Refactor get_functions test

* Add some tests

* Callees tests

* Add type defs test

* Remove residual debug code

* Fix tests

* Fix workflow file

* Fix workflow file again

* Add file_path tests for type defs, implement path rebasing for type defs in codequery

* Fix fixtures in pytest

* Fix module scoped fixtures in tests

---------

Co-authored-by: Boyan MILANOV <boyanmilanov@coder-boyanmilanov-aixcc-boyan.c.production-1-405717.internal>
2025-04-17 19:37:43 +03:00
Riccardo Schirone 2475b8e507 Move to use in-container paths (e.g. /src/) (#395)
* disable kythe/graphdb in tests
* fix integration CI
2025-04-16 11:05:44 +02:00
Boyan MILANOV d68c7d6a96 Fixes in CodeQuery and TreeSitter APIs with tests (#399)
* Add callees tests

* Add more tests for finding types

* Remove debug statements
2025-04-16 10:34:32 +02:00
Boyan MILANOV 319236d88b Fix code query search (#396)
Co-authored-by: Boyan MILANOV <boyanmilanov@coder-boyanmilanov-aixcc-boyan.c.production-1-405717.internal>
2025-04-15 08:38:53 +03:00
Evan Downing a754c94c82 Add new regression tests for c/java (#378)
* Add zookeeper test file

* Update java function query.

* Add caller/callee queries

* Add example test for C with fixture

* Refactor challenge task creation in tests

---------

Co-authored-by: Boyan MILANOV <boyanmilanov@coder-boyanmilanov-aixcc-boyan.c.production-1-405717.internal>
2025-04-10 10:09:35 +03:00