NULL pointer dereference in `print_job()` during MIME auto-detection
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
Línea de trabajo
Empieza en scheduler/ipp.c, en print_job(), cerca de la línea 8867 indicada en el informe. Después, inspecciona send_document() y sigue cómo gestiona cada función un resultado NULL de mimeFileType() y mimeType(). Revisa las pruebas cercanas sobre la detección automática de MIME y añade cobertura para ambas funciones cuando no haya definiciones MIME; el trabajo estará hecho cuando ninguna de las dos rutas desreferencie un tipo MIME inexistente y el planificador siga procesando la solicitud.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
An IPP client permitted to submit print jobs can crash cupsd if document auto-typing finds no MIME type and the configured MIME database cannot supply a fallback. The crash stops the scheduler, interrupting printing for all queues it serves.
Details
In scheduler/ipp.c, print_job() calls mimeFileType() to identify the document type and falls back to mimeType(). If both return NULL, it dereferences filetype in the log call and again in snprintf(). In the tested CUPS 2.4.19 build, the crash occurred in snprintf() at scheduler/ipp.c:8867.
In both tested configurations, cupsd continued accepting IPP requests without loading any MIME definitions. send_document() checks filetype before logging but still dereferences it in the following snprintf() call. Both code paths are present in CUPS 2.4.20 and at commit d473b41.
- Lenguaje dominante
- C
- Estrellas
- 1.8k
- Forks
- 362
- Merge medio
- 1 d 46 min
- PR fusionados (30 d)
- 10
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de OpenPrinting/cups
-
OAuth (bearer) quota check denies every user when the allowed-user list is emptyPosiblemente ocupada @RonitMehta08 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
OpenPrinting/cups#1795 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
cupsdGetPrivateAttrs: @ACL never grants access, and @OWNER is looked up as an operating-system group for non-ownersPosiblemente ocupada @user-Param la tomó hace 7 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
OpenPrinting/cups#1796 ·
Los mantenedores suelen responder en 1 día
-
OAuth/OIDC token-validation gaps: nonce not enforced when absent, at_hash alg, inbound bearer not signature/aud/exp-validated + unverified email used for authzQuizá libre de nuevo @michaelrsweet la tomó hace 145 días y no hay ningún pull request abierto. Abiertoinvestigating
OpenPrinting/cups#1609 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
OpenPrinting/cups#1572 ·
Los mantenedores suelen responder en 1 día
-
Fix OAuth authorization via web interfaceQuizá libre de nuevo @michaelrsweet la tomó hace 210 días y no hay ningún pull request abierto. Abiertobug priority-high security
OpenPrinting/cups#1556 · 8 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de OpenPrinting/cups
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
389ds/389-ds-base#8152 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
RetroAchievements/rcheevos#580 · 1 comentario ·
Los mantenedores suelen responder en 5 días
-
meta:feature-request
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
mpv-player/mpv#18855 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
[FIX]: File Tree in appAbiertobug help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día