NULL pointer dereference in `print_job()` during MIME auto-detection
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 scheduler/ipp.c 中报告行号 8867 附近的 print_job() 开始。然后检查 send_document(),跟踪这两个函数各自如何处理 mimeFileType() 和 mimeType() 返回 NULL 的情况。查看附近有关 MIME 自动检测的测试,并在没有 MIME 定义时为这两个函数补充测试;完成标准是两个路径都不会解引用缺失的 MIME 类型,并且调度程序会继续处理请求。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- C
- 星标
- 1.8k
- 派生
- 362
- 平均合并
- 1 天 46 分钟
- 30 天内合并 PR
- 10
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OpenPrinting/cups 的其他 Issue
-
OAuth (bearer) quota check denies every user when the allowed-user list is empty可能已有人在做 @RonitMehta08 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 66/100
OpenPrinting/cups#1795 · 1 条评论 ·
维护者通常 1 天内回复
-
cupsdGetPrivateAttrs: @ACL never grants access, and @OWNER is looked up as an operating-system group for non-owners可能已有人在做 @user-Param 于 7 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
OpenPrinting/cups#1796 ·
维护者通常 1 天内回复
-
OAuth/OIDC token-validation gaps: nonce not enforced when absent, at_hash alg, inbound bearer not signature/aud/exp-validated + unverified email used for authz可能重新可做 @michaelrsweet 于 145 天前认领,目前没有进行中的 PR。 未关闭investigating
OpenPrinting/cups#1609 · 已指派 1 人 ·
维护者通常 1 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 52/100
OpenPrinting/cups#1572 ·
维护者通常 1 天内回复
-
Fix OAuth authorization via web interface可能重新可做 @michaelrsweet 于 210 天前认领,目前没有进行中的 PR。 未关闭bug priority-high security
OpenPrinting/cups#1556 · 8 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 OpenPrinting/cups 的全部 Issue
相似的 Issue
-
Backport to 3.0 advertises a suffix that does not exist可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
389ds/389-ds-base#8152 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
RetroAchievements/rcheevos#580 · 1 条评论 ·
维护者通常 5 天内回复
-
meta:feature-request
难度 2/5 1-3 小时 新手友好度 66/100
mpv-player/mpv#18855 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug help wanted
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复