diff options
| author | Jeremy Evans <code@jeremyevans.net> | 2024-08-21 14:32:42 -0700 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2024-08-22 11:20:47 +0900 |
| commit | ae886e0c83c0e3a3c838f48fb91efe253c027c6d (patch) | |
| tree | 01eefc1905e5fcf4742c16f5ff1782f13395ccfe /test/ruby | |
| parent | 8999fd1ac84b01bc7a0a698791f10efb2b1d3b18 (diff) | |
Check getlogin return value before passing to strcasecmp
getlogin can return NULL, and this can avoid a segfault
in that case.
Mentioned as an issue in comment to bug 20586.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11427
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions
