Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal error with large trusted comment #115

Open
DemiMarie opened this issue Feb 20, 2022 · 2 comments
Open

Internal error with large trusted comment #115

DemiMarie opened this issue Feb 20, 2022 · 2 comments

Comments

@DemiMarie
Copy link

The following command causes xfprintf() overflow:

minisign -S -H -x s.pub.sig -t "$(python3 -c 'print("x" * 8192)')" -s m.sec -m s.pub
@jedisct1
Copy link
Owner

Comments are human-readable one-liners.

Is there a reasonable use case for having a line that is more than 4096 bytes long? Even with a lot of emojis, the limit sounds reasonable :)

@DemiMarie
Copy link
Author

Comments are human-readable one-liners.

Is there a reasonable use case for having a line that is more than 4096 bytes long? Even with a lot of emojis, the limit sounds reasonable :)

I can imagine people putting lots of machine-readable metadata there, but I also understand if you don’t support that use-case. More important (to me) is that the limit should be consistent between signing and verification, and that violating it should give a decent error message. “xfprintf() overflow” seems to imply an internal error, rather than a user error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants