Skip Menu |

This queue is for tickets about the Net-CUPS CPAN distribution.

Report information
The Basics
Id: 100352
Status: resolved
Priority: 0/
Queue: Net-CUPS

People
Owner: Nobody in particular
Requestors: gregoa [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 0.60
  • 0.61
  • 0.62
Fixed in: (no value)



From: gregoa [...] cpan.org
Subject: libnet-cups-perl: Segfaults in Net::CUPS::PPD method getNextOption when enumerating options
We have the following bug reported to the Debian package of Net-CUPS (https://bugs.debian.org/681085): It doesn't seem to be a bug in the packaging, so you may want to take a look. Thanks! Please note that the bug report also contains a proposed patch. ------8<-----------8<-----------8<-----------8<-----------8<----- Package: libnet-cups-perl Version: 0.60-1 Severity: important Tags: upstream The following Perl script will crash with a segmentation fault. The expected behaviour of getNextOption when there are no options left is to return undef. use Net::CUPS; use Net::CUPS::Destination; use Net::CUPS::PPD; use Data::Dumper; use strict; my $cups=Net::CUPS->new(); my $printer=$cups->getDestination("someprinter"); my $name=$printer->getName(); print("Printer name: $name\n"); my @options=$printer->getOptions(); foreach my $line (@options) { my $opt=$printer->getOptionValue($line); print("option: $line = $opt\n"); } print("\n--- PPD options\n"); my $ppd=$cups->getPPD("tardisjet"); while(my $opt=$ppd->getNextOption()) { print("Option:\n"); print Dumper $opt; } -- System Information: Debian Release: 6.0.5 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) Locale: LANG=es_ES.utf8, LC_CTYPE=es_ES.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libnet-cups-perl depends on: ii libc6 2.11.3-3 Embedded GNU C Library: Shared lib ii libcups2 1.4.4-7+squeeze1 Common UNIX Printing System(tm) - ii libgnutls26 2.8.6-1+squeeze2 the GNU TLS library - runtime libr ii libgssapi-krb5-2 1.8.3+dfsg-4squeeze5 MIT Kerberos runtime libraries - k ii perl 5.10.1-17squeeze3 Larry Wall's Practical Extraction ii perl-base [perlapi- 5.10.1-17squeeze3 minimal Perl system ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime libnet-cups-perl recommends no packages. Versions of packages libnet-cups-perl suggests: ii cups-common 1.4.4-7+squeeze1 Common UNIX Printing System(tm) - -- no debconf information ------8<-----------8<-----------8<-----------8<-----------8<----- Thanks for considering, gregor herrmann, Debian Perl Group
Included the patch in the just released 0.63. Thanks for your help!
Subject: Re: [rt.cpan.org #100352] libnet-cups-perl: Segfaults in Net::CUPS::PPD method getNextOption when enumerating options
Date: Mon, 31 Oct 2016 19:02:14 +0100
To: Stefan Seifert via RT <bug-Net-CUPS [...] rt.cpan.org>
From: gregor herrmann <gregoa [...] debian.org>
On Mon, 31 Oct 2016 04:12:15 -0400, Stefan Seifert via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=100352 > > > Included the patch in the just released 0.63.
Thanks for all the fixes and the new release! 0.63 is on its way to Debian/unstable. Cheers, gregor -- .''`. Homepage https://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - https://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- NP: Dire Straits: Industrial Disease
Download signature.asc
application/pgp-signature 931b

Message body not shown because it is not plain text.