-
Notifications
You must be signed in to change notification settings - Fork 30
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
eval
is used, which is unsafe
#40
Comments
All the cases seem to be
Whichever this it, it's a bad idea for two reasons:
|
Well, I don't know that Python style. That's a question to ask @mikeferguson :) Thx |
This actually predates me -- I just moved things around and tried to parameterize and clean up -- in particular I think this is for lines like: https://github.com/PR2/pr2_calibration/blob/hydro-devel/pr2_calibration_launch/estimate_params/config_pr2_beta/system.yaml#L109 where it has to evaluate "pi/2" |
good catch ! That .yaml is a custom format right ? Maybe we can just parse pi properly and that''s it. |
Is https://stackoverflow.com/questions/2371436/evaluating-a-mathematical-expression-in-a-string |
In the following places:
calibration/calibration_estimation/src/calibration_estimation/single_transform.py
Line 48 in 20d3bbf
calibration/calibration_estimation/src/calibration_estimation/joint_chain.py
Line 52 in 20d3bbf
calibration/calibration_estimation/src/calibration_estimation/urdf_params.py
Line 144 in 20d3bbf
What type of input is this trying to parse?
The text was updated successfully, but these errors were encountered: