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
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
2 matches
Mail list logo