Summary: | Buffer overflow in pdf_write_cmap | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Piotr Kajda <petermasterperfect> |
Component: | Security (public) | Assignee: | Chris Liddell (chrisl) <chris.liddell> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | carnil, dr, jsmeix, ken.sharp, marc.deslauriers, robin.watts, sam, till.kamppeter, zdohnal |
Priority: | P2 | ||
Version: | unspecified | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: | Proof of concept |
Description
Piotr Kajda
2025-05-12 01:23:13 UTC
Fixed in commit 0cae41b23a9669e801211dd4cf97b6dadd6dbdd7 There's nothing wrong with the proposed patch, but this deals with the problem in (I think) a neater way using dynamic allocation. Previously a lengthy CMap name could easily cause an error writing the CIDSystemInfo which would be ignored and produce an invalid PDF file. |