[Pdns-dev] Porting to old version

Abhijith PA abhijith at teknik.io
Sun Dec 2 05:29:12 UTC 2018


Hi.

On Sunday 02 December 2018 12:36 AM, bert hubert wrote:
> On Sun, Dec 02, 2018 at 12:00:11AM +0530, Abhijith PA wrote:
>> The fix for CVE-2018-14644 in 4.0.9 can't backport to 3.x older versions
>> due to the list initialization
>>
> 
> Hi Abhijith,
> 
> We really can't recommend continuing to run 3.x in production, please see
> https://doc.powerdns.com/authoritative/appendices/EOL.html and
> https://doc.powerdns.com/recursor/appendices/EOL.html
> 
>> '''
>> static const std::set<uint16_t> metaTypes = { QType::AXFR, QType::IXFR,
>> QType::RRSIG, QType::NSEC3, QType::OPT, QType::TSIG, QType::TKEY,
>> QType::MAILA, QType::MAILB };
>> '''
> 
> 
> To do this in old C++, replace this by:
> 
> static const std::set<uint16_t> metaTypes;

         ^^^^^
What could go wrong, if I ditch const :|. I am having a lot trouble with
it.

> and in main(), put something like:
> 
> metaTypes.insert(QType::AXFR);
> metaTypes.insert(QType::IXFR);
> etc

--
abhijith



More information about the Pdns-dev mailing list