mirror of
https://github.com/bugsink/bugsink.git
synced 2025-12-29 17:30:25 -06:00
bandit (trivial ignore)
This commit is contained in:
@@ -107,7 +107,8 @@ class Command(BaseCommand):
|
||||
return data_bytes
|
||||
|
||||
def br_bomb(self, header, size):
|
||||
filename = "/tmp/br-bomb-%d" % size
|
||||
# no_bandit_expl utility-script for local consumtion only
|
||||
filename = "/tmp/br-bomb-%d" % size # nosec B108
|
||||
if os.path.exists(filename):
|
||||
with open(filename, "rb") as f:
|
||||
data_bytes = f.read()
|
||||
@@ -151,7 +152,7 @@ class Command(BaseCommand):
|
||||
|
||||
def zlib_bomb(self, header, size, wbits):
|
||||
algo = "gzip" if wbits == WBITS_PARAM_FOR_GZIP else "deflate"
|
||||
filename = "/tmp/%s-bomb-%d" % (algo, size)
|
||||
filename = "/tmp/%s-bomb-%d" % (algo, size) # nosec B108
|
||||
|
||||
if os.path.exists(filename):
|
||||
with open(filename, "rb") as f:
|
||||
|
||||
Reference in New Issue
Block a user