search for: sshbuf_

Displaying 1 result from an estimated 1 matches for "sshbuf_".

Did you mean: sshbuf
2024 Feb 01
1
A couple of questions about OpenSSH codebase
...couple of questions arose while I was investigating it, and I guess this is the place where I can find answers. 1. There are a lot of allocations, even for short lived objects like sshbufs and sshkeys. Creating an sshbuf always requires at least one allocation, two allocations if it is created with sshbuf_new(). There are a lot of times when they are allocated and freed within the same function. Same thing with bitmaps. What is the reason behind not allocating them on the stack? 2. A lot of stuff in sshbuf's functions is checked against max_size. What is the reason behind setting the max_size in...