Skip to content

Commit

Permalink
Update pwndbg/glibc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
disconnect3d committed Oct 18, 2021
1 parent e0e32dc commit 5c0627d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pwndbg/glibc.py
Expand Up @@ -48,4 +48,9 @@ def _OnlyWhenGlibcLoaded(*a, **kw):

@OnlyWhenGlibcLoaded
def check_safe_linking():
"""
Safe-linking is a glibc 2.32 mitigation; see:
- https://lanph3re.blogspot.com/2020/08/blog-post.html
- https://research.checkpoint.com/2020/safe-linking-eliminating-a-20-year-old-malloc-exploit-primitive/
"""
return (get_version() >= (2, 32) or safe_lnk == "on") and safe_lnk != "off"

0 comments on commit 5c0627d

Please sign in to comment.