ke 12.3.2025 klo 22.52 Farblos ([email protected]) kirjoitti: > On 2025-03-11 19:28, Martin-Éric Racine wrote: > > > Since this is merely a question of preferred behavior that can be > > easily configured by changing the value for TitlePref, I'm closing > > this bug. > > since I'm quite confident that there *is* a bug if one wants to use > TitlePref=0. Which I happen to do. > > > As I mentioned already in my update #40 [1] (with different email > address back then), the following block from cups-pdf.c > > ------------------------------ snip ------------------------------ > if (sscanf(buffer, "%%%%Title: %"TBUFSIZE"c", title)==1) { > log_event(CPDEBUG, "found title in ps code: %s", title); > is_title=1; > } > ------------------------------ snip ------------------------------ > > is buggy since sscanf does not zero-terminate the string. > > I can provide a patch for that if you see any chances to get this > incorporated.
Patches are always welcome. Martin-Éric
