You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After saving and exiting the current Joern work context, a cpg.bin is generated under the project's work directory. However, I failed to get the cpg details using joern <path_to_cpg_bin> to reload the cpg file. Typing cpg to Joern's console reports error. This fails on Python but works fine on Java and C/C++.
To Reproduce
poc.py
# (c) 2012-2014, Michael DeHaan <[email protected]>## This file is part of Ansible## Ansible is free software: you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.## Ansible is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with Ansible. If not, see <http://www.gnu.org/licenses/>.__version__='1.6'__author__='Michael DeHaan'
Steps to reproduce the behavior:
Open the Joern's console via joern
Import the above poc.py to this work context via importCode("poc.py", "test")
Enter ctrl+d to save & exit in Ubuntu.
Import the saved cpg file via joern ./workspace/test/cpg.bin.
Type cpg.all.l and see error report.
Expected behavior cpg.all.l will print out all the nodes in the cpg.
Screenshots
Desktop (please complete the following information):
OS Ubuntu 22.04
Joern Version 4.0.98
Java version openJDK 17.0.11
The text was updated successfully, but these errors were encountered:
Describe the bug
After saving and exiting the current Joern work context, a
cpg.bin
is generated under the project's work directory. However, I failed to get the cpg details usingjoern <path_to_cpg_bin>
to reload the cpg file. Typingcpg
to Joern's console reports error. This fails on Python but works fine on Java and C/C++.To Reproduce
poc.py
Steps to reproduce the behavior:
joern
poc.py
to this work context viaimportCode("poc.py", "test")
ctrl+d
to save & exit in Ubuntu.joern ./workspace/test/cpg.bin
.cpg.all.l
and see error report.Expected behavior
cpg.all.l
will print out all the nodes in the cpg.Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: