Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomai
  • ipipe
  • Repository

Switch branch/tag
  • ipipe
  • arch
  • arm
  • common
  • sa1111.c
Find file BlameHistoryPermalink
  • Julia Lawall's avatar
    SA1111: Eliminate use after free · f2d2420b
    Julia Lawall authored Jul 30, 2010
    __sa1111_remove always frees its argument, so the subsequent reference to
    sachip->saved_state represents a use after free.  __sa1111_remove does not
    appear to use the saved_state field, so the patch simply frees it first.
    
    A simplified version of the semantic patch that finds this problem is as
    follows: (http://coccinelle.lip6.fr/
    
    )
    
    // <smpl>
    @@
    expression E,E2;
    @@
    
    __sa1111_remove(E)
    ...
    (
      E = E2
    |
    * E
    )
    // </smpl>
    Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
    Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
    f2d2420b

Replace sa1111.c

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.

Imprint & Privacy Policy