spiegel_podman/pkg/api
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
..
grpcpb pkg/api/grpcpb: auto-format generated protobuf files 2026-05-07 13:30:23 -04:00
handlers fix(api): nil check Memory.Limit before dereference in stats handler 2026-08-23 18:20:37 +04:00
server pkg/api/server: document missing manifest push and create params 2026-08-18 12:39:30 +05:30
types set !remote build tags where needed 2024-08-19 11:41:28 +02:00
Makefile RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
tags.yaml [docs] Refactor Artifact API documentation 2025-08-19 10:22:00 +10:00