Tuesday, 27 August 2013

Using python's eval() vs. ast.literal_eval()?

Using python's eval() vs. ast.literal_eval()?

References

Reference NO 1

http://stackoverflow.com/questions/15197673/using-pythons-eval-vs-ast-literal-eval

Reference NO 2

http://stackoverflow.com/questions/4710247/python-3-are-there-any-known-security-holes-in-ast-literal-evalnode-or-string

Reference NO 3

http://docs.python.org/library/ast.html

Reference NO 4

http://nedbatchelder.com/blog/201206/eval_really_is_dangerous.html

Reference NO 5

http://www.velocityreviews.com/forums/t639136-re-safe-eval-of-insecure-strings-containing-python-data-structures.html

Reference NO 6

http://www.gossamer-threads.com/lists/python/python/1060894

Reference NO 7

http://nullege.com/codes/search/ast.literal_eval

Reference NO 8

#EANF#

No comments:

Post a Comment