MCPcopy
hub / github.com/Gallopsled/pwntools / null_wrapper

Method null_wrapper

pwnlib/memleak.py:562–566  ·  view source on GitHub ↗
(address, *a, **kw)

Source from the content-addressed store, hash-verified

560
561 @functools.wraps(function, updated=[])
562 def null_wrapper(address, *a, **kw):
563 if b'\x00' in pack(address):
564 log.info('Ignoring leak request for %#x: Contains NULL bytes' % address)
565 return None
566 return function(address, *a, **kw)
567
568 return MemLeak(null_wrapper)
569

Callers

nothing calls this directly

Calls 3

packFunction · 0.90
functionFunction · 0.85
infoMethod · 0.80

Tested by

no test coverage detected