We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ff00c7 commit 25ce329Copy full SHA for 25ce329
Lib/multiprocessing/resource_tracker.py
@@ -285,7 +285,12 @@ def main(fd):
285
with open(fd, 'rb') as f:
286
for line in f:
287
try:
288
- cmd, name, rtype = line.strip().decode('ascii').split(':')
+ parts = line.strip().decode('ascii').split(':')
289
+ if len(parts) < 3:
290
+ raise ValueError("malformed resource_tracker message: %r" % (parts,))
291
+ cmd = parts[0]
292
+ rtype = parts[-1]
293
+ name = ':'.join(parts[1:-1])
294
cleanup_func = _CLEANUP_FUNCS.get(rtype, None)
295
if cleanup_func is None:
296
raise ValueError(
0 commit comments