Bug#766357: [libnet-cups-perl] bad free() when finalizing the result of getDestinations()

Alexis Bienvenüe pado at passoire.fr
Thu Oct 23 09:11:43 UTC 2014


The point here is that cupsGetDests builds a cups_dest_t array with
names, options names and values that are shared (when two printers has
the same name, the name is written in the same memory location and the
two corresponding cups_dest_t has the same 'name' pointer value).

A (dirty) solution could be to clone the cups_dest_t to make new copies
of these values, as in the attached patch.

Regards,
Alexis.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: clone.patch
Type: text/x-patch
Size: 1243 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20141023/372175ef/attachment.bin>


More information about the pkg-perl-maintainers mailing list