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

Method whitespace_wrapper

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

Source from the content-addressed store, hash-verified

578
579 @functools.wraps(function, updated=[])
580 def whitespace_wrapper(address, *a, **kw):
581 if set(pack(address)) & set(string.whitespace.encode()):
582 log.info('Ignoring leak request for %#x: Contains whitespace' % address)
583 return None
584 return function(address, *a, **kw)
585
586 return MemLeak(whitespace_wrapper)
587

Callers

nothing calls this directly

Calls 3

packFunction · 0.90
functionFunction · 0.85
infoMethod · 0.80

Tested by

no test coverage detected