Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed some issues found by code scanning tool #2305

Merged
merged 1 commit into from
Oct 14, 2020
Merged

Conversation

azhavoro
Copy link
Contributor

Fixed some linter issues

Motivation and context

How has this been tested?

Manually tested

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT

@azhavoro azhavoro requested a review from nmanovic as a code owner October 12, 2020 11:50
@coveralls
Copy link

coveralls commented Oct 12, 2020

Coverage Status

Coverage remained the same at 66.695% when pulling 4e2727f on az/fix_linter into d4129f2 on develop.

@@ -112,8 +112,8 @@ def intersection_over_union(box_1, box_2):

class ModelHandler:
def __init__(self, labels):
base_dir = os.environ.get("MODEL_PATH",
"/opt/nuclio/open_model_zoo/public/yolo-v3-tf/FP32")
base_dir = os.path.abspath(os.environ.get("MODEL_PATH",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which problem does it solve?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It solves path traversal warning

@nmanovic nmanovic merged commit 7543f5e into develop Oct 14, 2020
@nmanovic nmanovic deleted the az/fix_linter branch October 14, 2020 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants