Skip to content

TypeError: load_configuration.has GUARD_RF_FLAGS.INSTRUMENTED #473

@Wenzel

Description

@Wenzel

Describe the bug
Testing whether GUARD_RF_FLAGS.INSTRUMENTED is present with the has method on a load_configuration object returns a TypeError

To Reproduce

  • load a PE with LIEF
  • run b.load_configuration.has(GUARD_RF_FLAGS.INSTRUMENTED)

Capture d’écran de 2020-10-07 00-06-05

Expected behavior
The method should have returned a boolean to indicate whether this flag was present or not.

Environment (please complete the following information):

  • System and Version : Ubuntu 20.04
  • Target format PE
  • LIEF commit version: 0.10.1-bfe5414

Additional context
I need this feature to check RFG support:
Wenzel/checksec.py#77

Thanks !

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions