About 75 results
Open links in new tab
  1. What does Python's eval() do? - Stack Overflow

    See also: Why is using 'eval' a bad practice? to understand the critical security risks created by using eval or exec on untrusted input (i.e.: anything that is even partially under the user's control, rather than the …

  2. The 'eval' command in Bash and its typical uses - Stack Overflow

    After reading the Bash man pages and with respect to this post, I am still having trouble understanding what exactly the eval command does and which would be its typical uses. For example, if we do...

  3. What is the "eval" command in bash? - Unix & Linux Stack Exchange

    eval is a bash-builtin and is documented in the man page of bash. So just type "man bash" and search for the appropriate section for eval. This applies for other bash-builtins, too.

  4. Using python's eval () vs. ast.literal_eval () - Stack Overflow

    eval: This is very powerful, but is also very dangerous if you accept strings to evaluate from untrusted input. Suppose the string being evaluated is "os.system ('rm -rf /')" ? It will really start deleting all the …

  5. Why is using the JavaScript eval function a bad idea? [closed]

    The eval function is a powerful and easy way to dynamically generate code, so what are the caveats?

  6. What's the difference between eval, exec, and compile?

    Oct 12, 2018 · I've been looking at dynamic evaluation of Python code, and come across the eval() and compile() functions, and the exec statement. Can someone please explain the difference between …

  7. What are the Alternatives to eval in JavaScript? - Stack Overflow

    May 22, 2017 · Everyone says eval is EVIL (as in bad) and slow (as I have found), but I can't really do anything else - the server simply pulls the data out the database and pushes to the browser.

  8. javascript - JSON.parse vs. eval () - Stack Overflow

    Dec 3, 2009 · My Spider Sense warns me that using eval() to parse incoming JSON is a bad idea. I'm just wondering if JSON.parse() - which I assume is a part of JavaScript and not a browser-specific …

  9. Content Security Policy (CSP) - safe usage of unsafe-eval?

    May 11, 2016 · Because eval is literally unsafe. Eval in every language means "take this string and execute it code." Sure, you may be using eval in a semi-safe way, but as long as you allow it at all, you …

  10. calling eval () in particular context - Stack Overflow

    You can execute eval with a particular context, where this === theContext you pass in ({ neek: true } for example). The trick is you have to .call another function which then calls eval, you cannot .call eval …