Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TKx0j-0008K6-2K for pgsql-bugs@postgresql.org; Sun, 07 Oct 2012 19:59:37 +0000 Received: from mail-we0-f174.google.com ([74.125.82.174]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TKx0f-000443-TE for pgsql-bugs@postgresql.org; Sun, 07 Oct 2012 19:59:36 +0000 Received: by mail-we0-f174.google.com with SMTP id t9so2162175wey.19 for ; Sun, 07 Oct 2012 12:59:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=f0Kb102hdjJFhni8ikm3JjvBOTbTw0sLtPjCjdzUq48=; b=j6VhtWlmRjCoDLi42zO2uYw2EjoXnBH0j4S4QKlWzLouBVFDbXxQZthA0eQcQelKhQ BDtS4giOQGFf+OcFohYAXIhgeIa3u/yhyPaNPOSRxOxx+zYml/IHuHWxAZ83wbwSrVyh zKW1jz53Bz2Yb5e/hyeQ2rKTZXwRFZimPY6kOtTbJjYT08KbM+HcFGaHfuuVYgG1Z4Bh lADvLhFPfO6sWMEJBG89KN5IFA6Wrsqh4oKJTdkQs+NL1rYlu5smZWecRBTtrA5nrliI AiKCGuWlPW7tXlBwp3oTsVsgkCxI6twQN7nYerUPRlNL0pso84HvXnnWsiocpqmfLFHH ZpDw== Received: by 10.217.1.79 with SMTP id m57mr8304110wes.121.1349639972880; Sun, 07 Oct 2012 12:59:32 -0700 (PDT) Received: from Francos-MacBook-Air.local (host77-239-dynamic.52-79-r.retail.telecomitalia.it. [79.52.239.77]) by mx.google.com with ESMTPS id q7sm17639156wiy.11.2012.10.07.12.59.31 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 07 Oct 2012 12:59:32 -0700 (PDT) Message-ID: <5071DF1D.1000003@phys.uniroma1.it> Date: Sun, 07 Oct 2012 21:59:25 +0200 From: Franco Ricci User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: Tom Lane CC: pgsql-bugs@postgresql.org Subject: Re: BUG #7586: PL/Perl problem References: <13683.1349629603@sss.pgh.pa.us> In-Reply-To: <13683.1349629603@sss.pgh.pa.us> Content-Type: multipart/mixed; boundary="------------060809090507080804090701" X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201210/57 X-Sequence-Number: 34357 This is a multi-part message in MIME format. --------------060809090507080804090701 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Thanks a lot for explanation. I'm planing to upgrade to pgsql 9.2 even for other reasons. If I need to use earlier postgresql versions I'll fix my functions using a text arguments instead of xml one. I tried and It seams to work fine. Regards Franco Ricci On 7-10-2012 7:06 PM, Tom Lane wrote: > franco.ricci@phys.uniroma1.it writes: >> I wrote the following function in Perl to make some operations with LLRP >> command in a RFID application: >> ---- >> CREATE OR REPLACE FUNCTION llrp_command.llrpenc_bytea(xml) >> RETURNS bytea AS >> $BODY$ >> use strict; >> use RFID::LLRP::Builder qw(encode_message); > I don't know anything about RFID::LLRP::Builder, but some quick googling > suggests that it accesses libxml2 under the hood. If so, and if it > relies on being able to fetch external entities, you're going to need to > use PG 9.2 to make this work. The fix for CVE-2012-3489 broke such > cases in earlier branches. Sorry about that, but the alternatives were > worse; and in any case, pre-9.2 versions never made any serious effort > to allow other uses of libxml2 inside the backend. It's mostly luck > that it worked for you before, I think. > > regards, tom lane > -- Franco Ricci LabIT Sviluppo Servizi Informatici Dipartimento di Fisica Università di Roma "La Sapienza" Piazzale Aldo Moro, 5 00185 Roma Italy tel +390649913449 fax +39064463158 --------------060809090507080804090701 Content-Type: text/x-vcard; charset=utf-8; name="franco_ricci.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="franco_ricci.vcf" begin:vcard fn:Franco Ricci n:Ricci;Franco org;quoted-printable:Dipartimento di Fisica, Universit=C3=A0 di Roma "La Sapienza" adr:;;Piazzale Aldo Moro, 2;Roma;;00185;Italy email;internet:franco.ricci@phys.uniroma1.it, franco.ricci@uniroma1.it title:LabIT tel;work:+390649913449 tel;fax:+39064463158 url:www.phys.uniroma1.it version:2.1 end:vcard --------------060809090507080804090701--