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

Fix memory corruption in tree.c #763

Merged
merged 3 commits into from
Dec 20, 2023
Merged

Fix memory corruption in tree.c #763

merged 3 commits into from
Dec 20, 2023

Conversation

igaw
Copy link
Collaborator

@igaw igaw commented Dec 19, 2023

  • enable python build again
  • fix memory corruption

Fixes: #762

igaw added 2 commits December 19, 2023 22:15
In order to be able to select to run a given test by name, use a single
string which makes it way simpler to execute, e.g.

  meson test -C .build --gdb python-import-libnvme

Signed-off-by: Daniel Wagner <[email protected]>
We should also build the Python binding, thus use the Debian container
with all Python dependencies installed.

Signed-off-by: Daniel Wagner <[email protected]>
The ns pointer is owned by the caller not by nvme_ns_init, thus we can't
just free it on error.

Fixes: 7959f52 ("tree: read all attributes from sysfs when available")
Reported-by: Tomasz Kłoczko <[email protected]>
Signed-off-by: Daniel Wagner <[email protected]>
@igaw igaw merged commit 09391da into linux-nvme:master Dec 20, 2023
13 of 14 checks passed
@igaw igaw deleted the fix-tree branch December 20, 2023 08:04
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

Successfully merging this pull request may close these issues.

1.7: test suite fails in two units
1 participant