spiegel_podman/pkg/api/handlers
Mehrdad Biukian Naeini 14506421f9 fix(api): nil check Memory.Limit before dereference in stats handler
When a container has --memory-reservation set without --memory-limit,
resources.Memory is non-nil but resources.Memory.Limit is nil. The
compat stats handler dereferences the nil Limit pointer, causing a
panic that returns a 500 to the client.

Fix: add resources.Memory.Limit != nil guard before the dereference.
Regression test added in test/apiv2/19-stats.at.

Fixes #29627

Signed-off-by: Mehrdad Biukian Naeini <mehrdadbiukian@gmail.com>
2026-08-23 18:20:37 +04:00
..
compat fix(api): nil check Memory.Limit before dereference in stats handler 2026-08-23 18:20:37 +04:00
grpc RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
libpod Performance: Upgrade filepath.Walk to filepath.WalkDir 2026-08-20 20:48:08 +05:30
swagger api: Deprecate is-automated filter and field in GET /images/search endpoint 2026-07-08 17:31:02 +02:00
types RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
utils added errorlint 2026-08-14 01:35:03 +05:30
decoder.go added errorlint 2026-08-14 01:35:03 +05:30
types.go api: Deprecate fields Container and ContainerConfig from GET /images/{name}/json 2026-07-08 17:31:02 +02:00