Skip to content

Files

Latest commit

851f0ac · Oct 7, 2022

History

History
56 lines (33 loc) · 2.42 KB

readme.md

File metadata and controls

56 lines (33 loc) · 2.42 KB

coccinelle_exercises

contents

  • solutions-tutorial

  • [advanced_queries](.(advanced_queries)

  • tips 1: start simple, with a semantic patch that matches the common case

  • tips 2: incremental development, restrict semantic patch to reduce results, fp

  • tips 3: use multiple rules to have better results and scripts

    • e.g. we have @badr@ positon p; @@ @@ position p != badr.p @@
  • software lifecycle in a nutshell (ref: https://www.youtube.com/watch?v=LOsluYTzdMg)

    1. (great) idea
    2. quick and dirty implementation
    3. people like the idea and start to use the code
    4. feature requests
    5. bug reported
    6. attackers start to develop exploit

refs