You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
today I updated to PyCharm 2020.2.2 with the latest compatible Python-Security plugin. Noticed a new inspection error I did not get with PyCharm 2020.1.3 and the corresponding plugin version (no idea which one).
However, I understand the background of this STR100 inspection. But in my case (see example) I assume it is a false-positive error. It shows up on the template.format() call where template is a local scope variable inside the class method. Maybe I do not understand the vulnerability completely, but how can this (constant) format string template be a risk/manipulated from outside?
Do I get something wrong with the vulnerability? Or is the inspection just unable to differentiate between scopes/variable context/definition (would be fine to know)? Or is it a bug?
Hi,
today I updated to PyCharm 2020.2.2 with the latest compatible Python-Security plugin. Noticed a new inspection error I did not get with PyCharm 2020.1.3 and the corresponding plugin version (no idea which one).
However, I understand the background of this STR100 inspection. But in my case (see example) I assume it is a false-positive error. It shows up on the
template.format()
call wheretemplate
is a local scope variable inside the class method. Maybe I do not understand the vulnerability completely, but how can this (constant) format stringtemplate
be a risk/manipulated from outside?Do I get something wrong with the vulnerability? Or is the inspection just unable to differentiate between scopes/variable context/definition (would be fine to know)? Or is it a bug?
Kind regards, Martin
The text was updated successfully, but these errors were encountered: