Possible error in BEAR_SSL_CLIENT_IBUF_SIZE calculation #79
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
In BearSSLClient.h line 40-45 the values for
BEAR_SSL_CLIENT_OBUF_SIZE
andBEAR_SSL_CLIENT_IBUF_SIZE
are calculated.ArduinoBearSSL/src/BearSSLClient.h
Lines 40 to 46 in 5c27869
By writing so,
BEAR_SSL_CLIENT_OBUF_SIZE
will be computed to be 512+85 = 597.I would expect
BEAR_SSL_CLIENT_IBUF_SIZE
to be 8192 + 85 + 325 - 597 = 8005But by using defines the code for
BEAR_SSL_CLIENT_IBUF_SIZE
actually compiles to 8192 + 85 + 325 - 512 + 85 = 8175I don't know if this is intended behaviour. If it's not, things can be fixed by just adding some parenthesis
The text was updated successfully, but these errors were encountered: