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

libu2fmisc: possible data truncation due to long <> int implicit conversion #31

Open
iam-TJ opened this issue Feb 18, 2016 · 0 comments

Comments

@iam-TJ
Copy link

iam-TJ commented Feb 18, 2016

Building the binary helper for v0.0.13 on x86_64 host:

/home/all/SourceCode/yubikey/u2f4moz/c_src/libu2f-host/u2fmisc.c: In function ‘send_apdu’:
/home/all/SourceCode/yubikey/u2f4moz/c_src/libu2f-host/u2fmisc.c:328:18: warning: format ‘%c’ expects argument of type ‘int’, but argument 8 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
sprintf (data, "%c%c%c%c%c%c%c", 0, cmd, p1, 0, 0, (dlen >> 8) & 0xff,
^
/home/all/SourceCode/yubikey/u2f4moz/c_src/libu2f-host/u2fmisc.c:328:18: warning: format ‘%c’ expects argument of type ‘int’, but argument 9 has type ‘size_t {aka long unsigned int}’ [-Wformat=]

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

1 participant