Andrew Stitcher created PROTON-3010:
---------------------------------------

             Summary: Ensure that initialising TLS library will always work
                 Key: PROTON-3010
                 URL: https://issues.apache.org/jira/browse/PROTON-3010
             Project: Qpid Proton
          Issue Type: Bug
          Components: proton-c
            Reporter: Andrew Stitcher


The tls library accepted buffer counts using size_t which is typically 32/64 
bits on the usual architectures. However the internal buffer management 
datastructures index the buffers using uint16_t which allows many fewer buffers 
to be used.

If the specified buffer counts were above UINT16_MAX bad things would happen!

We only need to accept uint16_t sized counts and store these which prevents the 
issue from occurring at all.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to