diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2026-05-07 07:14:45 +0200 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2026-05-11 21:31:52 +0200 |
| commit | 303f8bac2f588732d9aa86fe19a59e8a7cb0bfef (patch) | |
| tree | 0711e3e071957dac1c71547cbaa6e13040874b0d /Completion/Unix | |
| parent | 54492: is* classification functions take unsigned char (diff) | |
| download | zsh-303f8bac2f588732d9aa86fe19a59e8a7cb0bfef.tar zsh-303f8bac2f588732d9aa86fe19a59e8a7cb0bfef.tar.gz zsh-303f8bac2f588732d9aa86fe19a59e8a7cb0bfef.tar.bz2 zsh-303f8bac2f588732d9aa86fe19a59e8a7cb0bfef.tar.lz zsh-303f8bac2f588732d9aa86fe19a59e8a7cb0bfef.tar.xz zsh-303f8bac2f588732d9aa86fe19a59e8a7cb0bfef.tar.zst zsh-303f8bac2f588732d9aa86fe19a59e8a7cb0bfef.zip | |
54493: socket: fix some issues with socket name
If the passed name was too long, it was silently truncated. If it was
exactly the max length, the string was not nul terminated.
% zsocket -l aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
==421== Syscall param socketcall.bind(my_addr.sun_path) points to uninitialised byte(s)
==421== at 0x4DD77D7: bind (in /lib64/libc-2.32.so)
==421== by 0x61FB31A: bin_zsocket (in /usr/local/lib64/zsh/5.9.0.3-test-mika/zsh/net/socket.so)
==421== by 0x4217BF: execbuiltin (in /usr/local/bin/zsh)
==421== by 0x433751: execcmd_exec (in /usr/local/bin/zsh)
==421== by 0x433D2B: execpline2 (in /usr/local/bin/zsh)
==421== by 0x434084: execpline (in /usr/local/bin/zsh)
==421== by 0x4359F8: execlist (in /usr/local/bin/zsh)
==421== by 0x4362A1: execode (in /usr/local/bin/zsh)
==421== by 0x44F7A1: loop (in /usr/local/bin/zsh)
==421== by 0x450AAD: zsh_main (in /usr/local/bin/zsh)
==421== by 0x4D01E69: (below main) (in /lib64/libc-2.32.so)
==421== Address 0x1ffeffd7ad is on thread 1's stack
==421== in frame #1, created by bin_zsocket (???:)
Diffstat (limited to 'Completion/Unix')
0 files changed, 0 insertions, 0 deletions
