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

memory issue in iser #280

Open
clicx opened this issue Nov 9, 2018 · 1 comment
Open

memory issue in iser #280

clicx opened this issue Nov 9, 2018 · 1 comment

Comments

@clicx
Copy link

clicx commented Nov 9, 2018

in iser.c, line 333:
if (pdu->indata.size <= iscsi->smalloc_size) {

it should be if (pdu->indata.size >= iscsi->smalloc_size) {

@ir1ka
Copy link
Contributor

ir1ka commented Nov 10, 2024

This is a problem, but I think the real cause of the problem comes from the allocation.
In the current code, the allocation and free of iser_pdu->iscsi_pdu.indata.data mismatch.
I created a pull request: #431

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