Handle PNG EXIF and distinguish transient encoder crashes from invalid images

This commit is contained in:
2026-11-21 00:58:18 +03:00
parent a9203f677d
commit 8bd25a1321
13 changed files with 690 additions and 85 deletions
+24 -31
View File
@@ -4,12 +4,12 @@
{
"service": "api",
"name": "/mtusi-lab5-kraykin-api-3",
"alias": "f2baf50a05e1",
"alias": "9fcdf8ad0603",
"image": "mtusi-messenger:lab5",
"image_id": "sha256:033d93df8f2079dcce2716e5cc7d97e22fac1092ed299c04f8002eca730a0f1e",
"image_id": "sha256:c99e8f8faa79ad809301fef274802cbaac38e84e89bf91f8eaba8250edeae5ea",
"user": "10001:10001",
"pid1_path": "/usr/local/bin/messenger",
"started_at": "2026-11-20T18:35:20.134094001Z",
"started_at": "2026-11-20T19:45:06.310439134Z",
"memory_limit_bytes": 805306368,
"nano_cpus_limit": 1000000000,
"published_ports": {
@@ -27,12 +27,12 @@
{
"service": "api",
"name": "/mtusi-lab5-kraykin-api-4",
"alias": "73a213d6be45",
"alias": "f33a60f7d635",
"image": "mtusi-messenger:lab5",
"image_id": "sha256:033d93df8f2079dcce2716e5cc7d97e22fac1092ed299c04f8002eca730a0f1e",
"image_id": "sha256:c99e8f8faa79ad809301fef274802cbaac38e84e89bf91f8eaba8250edeae5ea",
"user": "10001:10001",
"pid1_path": "/usr/local/bin/messenger",
"started_at": "2026-11-20T18:35:28.062023797Z",
"started_at": "2026-11-20T19:45:06.377709092Z",
"memory_limit_bytes": 805306368,
"nano_cpus_limit": 1000000000,
"published_ports": {
@@ -40,11 +40,11 @@
},
"health": "healthy",
"mount_targets": [
"/run/secrets/s3_secret_access_key",
"/run/secrets/database_url",
"/run/secrets/cache_url",
"/run/secrets/cursor_key",
"/run/secrets/s3_access_key_id"
"/run/secrets/s3_access_key_id",
"/run/secrets/s3_secret_access_key"
]
},
{
@@ -71,12 +71,12 @@
{
"service": "dispatcher",
"name": "/mtusi-lab5-kraykin-dispatcher-1",
"alias": "2781dab1bf31",
"alias": "143bd2091931",
"image": "mtusi-messenger:lab5",
"image_id": "sha256:033d93df8f2079dcce2716e5cc7d97e22fac1092ed299c04f8002eca730a0f1e",
"image_id": "sha256:c99e8f8faa79ad809301fef274802cbaac38e84e89bf91f8eaba8250edeae5ea",
"user": "10001:10001",
"pid1_path": "/usr/local/bin/messenger",
"started_at": "2026-11-20T18:31:55.513529337Z",
"started_at": "2026-11-20T19:45:06.247870508Z",
"memory_limit_bytes": 134217728,
"nano_cpus_limit": 250000000,
"published_ports": {
@@ -84,21 +84,21 @@
},
"health": "healthy",
"mount_targets": [
"/run/secrets/database_url",
"/run/secrets/broker_url",
"/run/secrets/s3_access_key_id",
"/run/secrets/s3_secret_access_key",
"/run/secrets/database_url"
"/run/secrets/s3_secret_access_key"
]
},
{
"service": "housekeeping",
"name": "/mtusi-lab5-kraykin-housekeeping-1",
"alias": "3af7f34eee90",
"alias": "5aaadf8c620e",
"image": "mtusi-messenger:lab5",
"image_id": "sha256:033d93df8f2079dcce2716e5cc7d97e22fac1092ed299c04f8002eca730a0f1e",
"image_id": "sha256:c99e8f8faa79ad809301fef274802cbaac38e84e89bf91f8eaba8250edeae5ea",
"user": "10001:10001",
"pid1_path": "/usr/local/bin/messenger",
"started_at": "2026-11-20T18:31:55.591483212Z",
"started_at": "2026-11-20T19:45:06.305480592Z",
"memory_limit_bytes": 134217728,
"nano_cpus_limit": 250000000,
"published_ports": {
@@ -172,9 +172,9 @@
},
"health": "healthy",
"mount_targets": [
"/data",
"/run/secrets/s3_root_user",
"/run/secrets/s3_root_password"
"/run/secrets/s3_root_password",
"/data"
]
},
{
@@ -193,19 +193,19 @@
},
"health": null,
"mount_targets": [
"/data",
"/run/secrets/valkey_config"
"/run/secrets/valkey_config",
"/data"
]
},
{
"service": "worker",
"name": "/mtusi-lab5-kraykin-worker-1",
"alias": "3937bad317b9",
"alias": "e045cc8a7994",
"image": "mtusi-messenger:lab5",
"image_id": "sha256:033d93df8f2079dcce2716e5cc7d97e22fac1092ed299c04f8002eca730a0f1e",
"image_id": "sha256:c99e8f8faa79ad809301fef274802cbaac38e84e89bf91f8eaba8250edeae5ea",
"user": "10001:10001",
"pid1_path": "/usr/local/bin/messenger",
"started_at": "2026-11-20T18:31:55.590725254Z",
"started_at": "2026-11-20T19:45:06.306100384Z",
"memory_limit_bytes": 1073741824,
"nano_cpus_limit": 1000000000,
"published_ports": {
@@ -225,12 +225,5 @@
"full_page_writes=on",
"max_connections=100",
"synchronous_commit=on"
],
"docker_vm": {
"architecture": "aarch64",
"cpus": 14,
"memory_bytes": 8217473024,
"engine": "28.1.1",
"compose": "2.35.1-desktop.1"
}
]
}