You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we have an issue in Fedora about cups-browsed getting SIGSEGV when generating PPD file.
cups-browsed is set to BrowsePoll to CentOS 7 server, where a print queue with following ppd is installed. CUPS-1.6.3 from CentOS is not capable to return media-col-database via response, so Get-Printer-Attributes operation passes only with All keyword for requested attributes.
The attached gdb log shows ppdname contains A4 because media-col-default contains non-borderless value, but other attributes are missing (media-col-database) or are set as borderless (media-size-supported, media-supported).
all_borderless is still 1, because all medias in sizes are Borderless, but ppdname is A4, so it segfaults on *suffix = '\0'; because suffix is NULL.
The quick fix would be to check whether suffix is NULL, but it feels like narrow fix - what do you think about how the code should behave in situations when media-col-default tells non-borderless media and other medias are borderless?
The text was updated successfully, but these errors were encountered:
Simple addition of NULL checks is OK here, as we only want to remove unneeded ".Borderless" suffixes.
Fixed in commit 240ffb9 in master. Merge to 1.x will come later.
Hi,
we have an issue in Fedora about
cups-browsed
getting SIGSEGV when generating PPD file.cups-browsed
is set toBrowsePoll
to CentOS 7 server, where a print queue with following ppd is installed. CUPS-1.6.3 from CentOS is not capable to returnmedia-col-database
via response, soGet-Printer-Attributes
operation passes only withAll
keyword for requested attributes.The attached gdb log shows
ppdname
containsA4
becausemedia-col-default
contains non-borderless value, but other attributes are missing (media-col-database
) or are set as borderless (media-size-supported
,media-supported
).Then the SIGSEGV comes in this code:
all_borderless
is still1
, because all medias in sizes areBorderless
, butppdname
isA4
, so it segfaults on*suffix = '\0';
because suffix is NULL.The quick fix would be to check whether
suffix
is NULL, but it feels like narrow fix - what do you think about how the code should behave in situations whenmedia-col-default
tells non-borderless media and other medias are borderless?The text was updated successfully, but these errors were encountered: