joern
joern copied to clipboard
Open-source code analysis platform for C/C++/Java/Binary/Javascript/Python/Kotlin based on code property graphs. Discord https://discord.gg/vv4MH284Hc
**Describe the bug** When I export graphson using joern-export /SecExample/cpg --repr=all --format=graphson -o /SecExample/graphson, there is a problem with gremlin_python parsing. Here my python code: ``` from gremlin_python.structure.io.graphsonV3d0 import GraphSONReader...
**Describe the bug** Single variable special if-statements don't have the correct data dependency edges and location in the DDG. I used the following code: ```c int main(int argc) { if...
**Is your feature request related to a problem? Please describe.** I would like to extract the complete control flow graph (CFG) of an entire project, including inter-procedural information, using Joern....
**Describe the bug** A clear and concise description of what the bug is. I`am trying to load c# project. If i compile it in Visual Studio, everything is OK, no...
`val config = io.joern.pysrc2cpg.Py2CpgOnFileSystemConfig() config.inputPath = "./sast-benchmark-master-python-flask" config.outputPath = "./cpg.bin.zip" val cpg = Py2CpgOnFileSystem().createCpg(config = config).get try { val context = new LayerCreatorContext(cpg) new Base().run(context) new TypeRelations().run(context) new ControlFlow().run(context) new...
I am encountering an issue with accurately calculating the fan-in and fan-out of specific functions within a large Python project, such as Django. While attempting to analyze the call relationships,...
We've noticed that having a sink in the sources set changes the outcome of `reachableBy` in unexpected ways. Below are three test cases showing this behaviour. Joern version: 4.0.131 ##...
code ``` https://github.com/torvalds/linux/blob/master/drivers/hwtracing/intel_th/msu.c#L1585 static void msc_mmap_open(struct vm_area_struct *vma) { struct msc_iter *iter = vma->vm_file->private_data; struct msc *msc = iter->msc; atomic_inc(&msc->mmap_count); } ``` the ddg  the dataflow from `vma->vm_file` to...
**Describe the bug** When using `joern-export` to export a CPG in dot format, it fails to escape special characters (e.g., %d) or double quotes inside the CODE attribute of each...
**Describe the bug** When generating pdgs, it generates .dot files error, and folders one by one Please keep the conversation English! Make it easy for us and share your input...