cle icon indicating copy to clipboard operation
cle copied to clipboard

Unsupported operation between int and Nontype instances

Open KOUGBLENOU opened this issue 8 months ago • 2 comments
trafficstars

Description

Got this when trying the build a 'CFGFast' for a freertos application.

bj = self.project.loader.find_object_containing(ptr, membership_check=False)
  File "/home/kos/.local/lib/python3.10/site-packages/cle/loader.py", line 459, in find_object_containing
    if self._last_object is not None and self._last_object.min_addr <= addr <= self._last_object.max_addr:
TypeError: '<=' not supported between instances of 'int' and 'NoneType'

Steps to reproduce the bug

  • try to build a 'CFG' for this binary file.

Environment

Ubuntu 22.04.5 LTS

Additional context

No response

KOUGBLENOU avatar Mar 19 '25 09:03 KOUGBLENOU

Thanks for reporting! Is there a binary that you can share?

ltfish avatar Mar 19 '25 10:03 ltfish

Thanks for reporting! Is there a binary that you can share?

Sure! Here is the binary file.

KOUGBLENOU avatar Mar 19 '25 12:03 KOUGBLENOU