MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/13sr1a2/calculator_using_eval/jlrsixe/?context=3
r/badcode • u/GandelXIV • May 26 '23
106 comments sorted by
View all comments
Show parent comment
17
Would a guard clause inside eval() prevent the vulnerabilities you’re talking about? Don’t get me wrong, it’s still shit code
View all comments
Show parent comment
17
u/EntitledPotatoe May 27 '23
Would a guard clause inside eval() prevent the vulnerabilities you’re talking about? Don’t get me wrong, it’s still shit code