Skip to content

ringct: make h2d() fallible#10381

Open
jeffro256 wants to merge 1 commit intomonero-project:masterfrom
jeffro256:fallible_h2d
Open

ringct: make h2d() fallible#10381
jeffro256 wants to merge 1 commit intomonero-project:masterfrom
jeffro256:fallible_h2d

Conversation

@jeffro256
Copy link
Copy Markdown
Contributor

One theoretically could have crafted a "long amount" (pre-v10) RingCT transaction with non-0 padding bytes in the decoded amount which fails receiver scanning (doesn't truncate decoded amount), but passes third-party wallet proof checking (does truncate decoded amount).

One theoretically could have crafted a "long amount" (pre-v10) RingCT transaction
with non-0 padding bytes in the decoded amount which fails receiver scanning, but
passes third-party wallet proof checking.

#include <boost/lexical_cast.hpp>
#include "misc_log_ex.h"
extern "C" {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wish this was done in the header. :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants