VirusTotal / yara-python

The Python interface for YARA
http://virustotal.github.io/yara/
Apache License 2.0
648 stars 179 forks source link

Added check for stdbool.h header and forcing its use #159

Closed metthal closed 3 years ago

metthal commented 3 years ago

When compiling YARA without Python bindings, stdbool.h is actually used if it can be used. However Python bindings completely ignore it resulting in YARA defining its own bool type with sizeof(bool) == sizeof(int). However before #1377, this can result in different compilation units using different sizes of bool type and chaos ensues.