buffer Underflow vulnarability assertion check fix for RFC1751.cpp
an assertion check fix has been updated with the code
https://github.com/nathanogaga118/rippled/blob/develop/src/libxrpl/crypto/RFC1751.cpp
Key Changes and fixes:
Assertions Added:
In btoe: assert(strData.size() >= 8 && "strData must be at least 8 bytes long");
In getEnglishFromKey: assert(strKey.size() >= 16 && "strKey must be at least 16 bytes long");
These assertions ensure that the preconditions for the btoe function are met, preventing potential buffer underflow issues.
Please kindly re-format this PR, as per to https://github.com/XRPLF/rippled/blob/develop/CONTRIBUTING.md#formatting Note, we are using old clang-format-10, but it's trivial to setup with the help of containerised ubuntu:20.04 (https://packages.ubuntu.com/focal/clang-format-10 )
Also, this PR seems to be removing existing comments from the codebase in a rather arbitrary manner, please do not do that without a good reason.
Closed due to author's inactivity