Skip to content
Snippets Groups Projects
  1. Sep 15, 2024
  2. Aug 01, 2024
  3. May 25, 2024
    • Claudia Pellegrino's avatar
    • Claudia Pellegrino's avatar
      fix(rules): populate `all_rules` correctly again · 8395a539
      Claudia Pellegrino authored
      Commit f4ef0624 changed `AbstractRule` so it inherits from `ABC`. This
      inadvertently introduced a regression so the `all_rules` dict became
      empty, essentially breaking all of namcap.
      
      The existing logic in `__init__.py` that populates `all_rules` uses a
      filter which tries to let only things pass that are classes:
      
          type(v) == type
      
      However, this really means "check that v is a class with no superclass,"
      so this check only allows top-level classes (inheriting directly from
      `object`) to pass.
      
      That still worked by accident because there was no inheritance at all,
      but letting `AbstractRule` inherit from `ABC` finally broke it.
      To fix this regression, change the check to:
      
          isinstance(v, type)
      
      which means "check that v is a class."
      
      There is no unit test that tests (or interacts with) `all_rules`, which
      explains why this went past CI checks.
      Verified
      8395a539
    • loqs's avatar
      chore: Limit shadow stack check to x86_64 binaries · 80109cc7
      loqs authored and Jelle van der Waa's avatar Jelle van der Waa committed
      80109cc7
  4. May 22, 2024
  5. Mar 13, 2024
  6. Mar 12, 2024
  7. Mar 02, 2024
  8. Feb 10, 2024
  9. Feb 09, 2024
  10. Feb 07, 2024
Loading