Skip to content

How to point CodeQL to source code for 3rd party/precompiled libraries? #275

Answered by p0
adriaanjacobs asked this question in Q&A
Discussion options

You must be logged in to vote

Your best bet if you really want to go down this route is indeed to build all the dependencies you want to include in the database as part of the database creation. CodeQL will pick up the compiler invocations that happen while the build command/script you provide runs, and reflect all processed source in the database (with appropriate compiler settings, target platforms, include paths, and so on). Without that information, we can't create a sufficiently accurate model of C/C++ code.

Having said that, our default assumption about external calls is actually that they do not propagate taint -- our CodeQL libraries provide explicit models for many common APIs that are relevant to data flow a…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@adriaanjacobs
Comment options

@adriaanjacobs
Comment options

@p0
Comment options

@adriaanjacobs
Comment options

@p0
Comment options

Answer selected by adriaanjacobs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants