YuchenJin commented on code in PR #13751:
URL: https://github.com/apache/tvm/pull/13751#discussion_r1105226209
##########
apps/microtvm/arduino/template_project/microtvm_api_server.py:
##########
@@ -177,11 +177,28 @@ def _remove_unused_components(self, source_dir,
project_type):
for component in unused_components:
shutil.rmtree(source_dir / "standalone_crt" / component)
+ def _safe_extract(tar, path=".", members=None, *, numeric_owner=False):
+ def is_within_directory(directory, member):
+
+ target = os.path.join(path, member.name)
Review Comment:
Thank you @gromero for your suggestions! I rebased and updated, let's see if
the ci complains this time. :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]