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

Chech rc while reading from driver #6694

Closed
sminux opened this issue Aug 11, 2024 · 0 comments
Closed

Chech rc while reading from driver #6694

sminux opened this issue Aug 11, 2024 · 0 comments

Comments

@sminux
Copy link

sminux commented Aug 11, 2024

Description
Variable 'rc', which might receive a negative value at Driver.h:315

rc = read(from_drv, (void *) buffer, sizeof(char) * 31);

by calling function 'read', is used without checking at Driver.h:317
buffer[rc]='\0';

Details

  • Hypervisor: KVM
  • Version: master or development
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

2 participants