PT-2025-35525 · Crates.Io · Xcb
Publicado
2025-08-22
·
Atualizado
2025-08-22
CVSS v4.0
1.7
Baixa
| Vetor | AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U |
The API of
xcb::Connection has constructors which allow an arbitrary RawFd to be used as a socket connection. On either failure of these constructors or on the drop of Connection, it closes the associated file descriptor. Thus, a program which uses an OwnedFd (such as a UnixStream) as the file descriptor can close the file descriptor and continue to attempt using it or close an already-closed file descriptor, violating I/O safety.Starting in version 1.6.0,
xcb provides Connection::connect with fd and Connection::connect with fd and extensions as safe alternatives and deprecates the problematic functions.Correção
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Identificadores relacionados
Produtos afetados
Xcb