Bug#681085: libnet-cups-perl: Segfaults in Net::CUPS::PPD method getNextOption when enumerating options

2014-11-09 Thread Alexis Bienvenüe
The problem comes from a strlen applied to option-choices[loop].code, that can be NULL. Moreover, $ppd-getNextOption() returns {} instead of undef when there is no more options. This should be fixed with attached patch. --- a/packer.c 2014-11-09 18:04:10.743063240 +0100 +++ b/packer.c 2014-11-09

Bug#681085: libnet-cups-perl: Segfaults in Net::CUPS::PPD method getNextOption when enumerating options

2012-07-10 Thread Dylan Smith
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. #!/usr/bin/perl use Net::CUPS; use Net::CUPS::Destination; use