Skip to content

Conversation

jcwchen
Copy link
Member

@jcwchen jcwchen commented Sep 12, 2022

Description

Cherry-pick #4400 and #4470 for 1.12.1. It will be used for updating ONNX commit in ONNX Runtime to solve vulnerability issue while loading external tensors from files outside the directory.

Motivation and Context

With the base of rel-1.12.0, cherry-pick #4400 and #4470 to solve vulnerability issue while loading external tensors from files outside the directory.

jnovikov and others added 2 commits September 9, 2022 12:28
…ry (onnx#4400)

* Not allow to read tensor external_data outside the model directory

Signed-off-by: jnovikov <johnnovikov0@gmail.com>

* Fix formatting errors

Signed-off-by: jnovikov <johnnovikov0@gmail.com>

* Disable segfaulty test

Signed-off-by: jnovikov <johnnovikov0@gmail.com>

* Fix cpp tests

Signed-off-by: jnovikov <johnnovikov0@gmail.com>

* Fix UB while removing ../

Signed-off-by: jnovikov <johnnovikov0@gmail.com>

* Fix clang-format

Signed-off-by: jnovikov <johnnovikov0@gmail.com>

* Check for symlinks only on POSIX systems

Signed-off-by: jnovikov <johnnovikov0@gmail.com>

* Add specific to Windows external_data test

Signed-off-by: jnovikov <johnnovikov0@gmail.com>

* Change specific Windows external_data test decorator tofix mypy

Signed-off-by: jnovikov <johnnovikov0@gmail.com>

* Remove unused pathlib

Signed-off-by: jnovikov <johnnovikov0@gmail.com>

Signed-off-by: jnovikov <johnnovikov0@gmail.com>
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
@jcwchen jcwchen added the run release CIs Use this label to trigger release tests in CI label Sep 12, 2022
@jcwchen jcwchen requested a review from a team as a code owner September 12, 2022 20:51
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
@jcwchen jcwchen merged commit 5a5f8a5 into onnx:rel-1.12.1 Sep 14, 2022
@jcwchen jcwchen deleted the rel-1.12.1 branch September 14, 2022 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run release CIs Use this label to trigger release tests in CI
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants