Skip to content

tin-z/coccinelle_exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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