MCPcopy Create free account
hub / github.com/HexHive/NASS / check_crashing

Method check_crashing

fuzz/preprocess.py:255–269  ·  view source on GitHub ↗
(self, seed_dir)

Source from the content-addressed store, hash-verified

253 return True
254
255 def check_crashing(self, seed_dir) -> list[tuple[str, str]]:
256 out = []
257 for cmd_id in os.listdir(seed_dir):
258 cmd_id_path = os.path.join(seed_dir, cmd_id)
259 for seed in os.listdir(cmd_id_path):
260 seed_path = os.path.join(cmd_id_path, seed)
261 self.log(f'checking if final seed {seed_path} crashes')
262 crashed = nass_api.check_crashing(
263 self.service_name,
264 self.device_id,
265 seed_path
266 )
267 if crashed:
268 out.append((cmd_id, seed_path))
269 return out
270
271 def dump_vtable(self):
272 if not os.path.exists(os.path.join(self.target_path, "onTransact_vtable.txt")):

Callers 1

extractMethod · 0.95

Calls 2

logMethod · 0.95
joinMethod · 0.80

Tested by

no test coverage detected