1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00
Viktor Szakats 4aa1720b60 agent: do not store stack pointer in transaction context
Fixing:
```
src/agent.c:956:9: warning: Address of stack memory associated with local variable 'c' is still referred to by the caller variable 'agent' upon returning to the caller.  This will be a dangling reference [clang-analyzer-core.StackAddressEscape]
  956 |         return _libssh2_error(agent->session, LIBSSH2_ERROR_BAD_USE,
      |         ^
src/agent.c:1164:12: note: Calling 'agent_list_identities'
 1164 |     return agent_list_identities(agent);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/agent.c:942:8: note: Assuming field 'state' is equal to agent_NB_state_init
  942 |     if(transctx->state == agent_NB_state_init) {
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/agent.c:942:5: note: Taking true branch
  942 |     if(transctx->state == agent_NB_state_init) {
      |     ^
src/agent.c:950:5: note: Taking false branch
  950 |     if(*transctx->request != SSH2_AGENTC_REQUEST_IDENTITIES)
      |     ^
src/agent.c:954:8: note: Assuming field 'ops' is null
  954 |     if(!agent->ops)
      |        ^~~~~~~~~~~
src/agent.c:954:5: note: Taking true branch
  954 |     if(!agent->ops)
      |     ^
```

Closes #1845
2026-04-10 18:39:11 +02:00
2026-04-09 00:27:15 +02:00
2026-04-10 18:39:11 +02:00
2026-04-10 18:39:11 +02:00
2023-06-07 08:18:55 +02:00
2026-04-10 18:39:11 +02:00
2023-06-07 08:18:55 +02:00
2023-06-07 08:18:55 +02:00
2023-06-07 08:18:55 +02:00
2023-08-18 11:20:58 +00:00
2011-04-04 13:31:33 +02:00
2023-08-18 11:20:58 +00:00

libssh2 - SSH2 library

libssh2 is a library implementing the SSH2 protocol, available under the revised BSD license.

Web site

Mailing list

BSD Licensed

Web site source code

Installation instructions:

Description
libssh2 - это библиотека, реализующая протокол SSH2, доступная по пересмотренной лицензии BSD
Readme 26 MiB
Languages
C 84.2%
CMake 3.7%
Perl 3.2%
M4 2.7%
Shell 2.3%
Other 3.7%