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

Use memcpy instead of strcpy #180

Open
szszszsz opened this issue Jun 6, 2020 · 0 comments
Open

Use memcpy instead of strcpy #180

szszszsz opened this issue Jun 6, 2020 · 0 comments

Comments

@szszszsz
Copy link
Member

szszszsz commented Jun 6, 2020

While sending temporary password, the strcpy is used to copy binary buffer, which might result in setting the value shorter than allowed.

strcpyT(authreq.temporary_password, temporary_password);

@szszszsz szszszsz added this to the v3.6 milestone Jun 6, 2020
sgued pushed a commit to sgued/libnitrokey that referenced this issue Feb 14, 2022
@szszszsz szszszsz modified the milestones: v3.7, v3.8 Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant