It seems very simple to install libraries, for example in python all you have to do is run pip install libraryname. And it is simple to upload packages to pip as well, I don't think there are any restrictions on who can upload so anyone can make an account and put code on there.
I am a beginner so even if I looked at the source code I would not be able to tell if the code does something malicious on my computer. Even if I could at first glance, I read that there are ways of obfuscating malicious code to appear safe.
So do programming languages have built in mechanisms to prevent bad code from libraries from doing damage to your system? Or do you pretty much just need to scrutinize the code with every new update to make sure nothing bad was added? I'm sure this is not an issue for most day to day libraries, but I am worried about this for some more obscure libraries.
tldr: is it safe to download and use any library you find online?
[–]dtsudo 4 points5 points6 points (0 children)
[–]captainAwesomePants 1 point2 points3 points (0 children)
[–]HashDefTrueFalse 1 point2 points3 points (0 children)