Hi Everyone,
We started running Crypto++ through
https://lgtm.com, which provides security related recommendations. We're seeing some old warnings like: DERGeneralEncoder is signature-compatible with a copy constructor when its default arguments are taken into account:
DERGeneralEncoder::DERGeneralEncoder(DERGeneralEncoder &outQueue, byte asnTag)
: ByteQueue(), m_outQueue(outQueue), m_asnTag(asnTag), m_finished(false)
{
}
I think that was a design choice by Wei early in the library. I think the complaint is mostly style, but I don't like that it is getting in the way of a quick-and-dirty security evaluation. That's a recipe for bug reports, mailing list messages and failed audits.
My question is, should we clear them?
The potential side effect is, if we clear them, then we break ABI and have to major bump the library.
Jeff