Is Scandir really secure?
source link: https://www.codesd.com/item/is-scandir-really-secure.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Is Scandir really secure?
In the UNIX® System Threads Reference, under the heading of "Thread-safety" is a list of functions are "not guaranteed to be thread-safe on all UNIX systems." The function scandir() is absent from this list, while readdir() appears on the list.
However the glibc source for scandir() clearly appears to call readdir(), not the thread-safe readdir_r(). So was scandir() omitted from the list for some other reason, or is it thread-safe for some reason I am missing?
I think, this list covers POSIX functions only. scandir(3)
is BSD/SVID and might not be listed there hence. The new, thread-safe functions are probably the focus of this list but not listing old, thread-unsafe functions.
Related Articles
HTTPS and encrypted database is really secure in shared hosting?
PHP Is password_verify really secure? Add another salt?
Are secret URLs really secure?
Is the hash mechanism really secure?
Brian Goetz: SafePoint example - is it really secure?
Is LibCurl really secure?
Why java concurrent collections are really secure
Creating a SECURE high score service using ASP.NET MVC 3
IOS encryption to use web data securely
Secure hashing of a few million items
Is it a secure SSL data transmission? Or not?
Verifying the security of the connection to the Php database
Security Vulnerability Checklist
Development of cross-platform games: ease of development vs security
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK