Please sign in to comment.
src: readlink("/proc/self/exe") -> uv_exename()
This commit also adds error handling. A THP-enabled build terminated with an out-of-memory error on a system without /proc because it cast the -1 from readlink() to size_t (i.e. ULONG_MAX) and then tried to allocate a string of that size. PR-URL: #28333 Reviewed-By: Rich Trott <email@example.com> Reviewed-By: Colin Ihrig <firstname.lastname@example.org> Reviewed-By: James M Snell <email@example.com> Reviewed-By: Anna Henningsen <firstname.lastname@example.org>
- Loading branch information...