]> git.ipfire.org Git - thirdparty/systemd.git/commit
xattr: fix assert that breaks importctl (#37146)
authorLuca Boccassi <bluca@debian.org>
Tue, 15 Apr 2025 21:44:24 +0000 (22:44 +0100)
committerGitHub <noreply@github.com>
Tue, 15 Apr 2025 21:44:24 +0000 (06:44 +0900)
commit86cfbfae97cad2c22f7e9b3c2a8aea4171da5302
tree3f6c48fefa11aa9bff847338b4397cbda37683d0
parent8a05dbb31a30b8c63ef6b50e0e7f4d9b749239a0
xattr: fix assert that breaks importctl (#37146)

getxattr_at_malloc() calls getxattr_pinned_internal() with size 0 to get
the size of the xattr, and then asserts because n > 0
```
Assertion '(size_t) n <= size' failed at src/basic/xattr-util.c:107, function getxattr_pinned_internal().
```

Follow-up for b8df25dcfe674e37ceb3d54e00a31e1d33e96057
src/basic/xattr-util.c