Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug detecting openssl 3+ at compile time can cause a runtime crash #4553

Closed
davidnich opened this issue Jul 6, 2022 · 0 comments
Closed

Comments

@davidnich
Copy link
Contributor

davidnich commented Jul 6, 2022

==95532== Memcheck, a memory error detector
==95532== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==95532== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info
==95532== Command: ./qorus-core -I
==95532== 
==95532== Invalid read of size 8
==95532==    at 0x5B1E866: EVP_CIPHER_CTX_set_key_length (evp_enc.c:985)
==95532==    by 0x4F64BC4: CryptoTransform::CryptoTransform(char const*, bool, char const*, unsigned int, char const*, unsigned int, char const*, unsigned int, unsigned int, ReferenceNode const*, char const*, unsigned int, ExceptionSink*) (EncryptionTransforms.cpp:187)
==95532==    by 0x4DE49F1: EncryptionTransforms::getCryptoTransform(char const*, bool, char const*, unsigned int, char const*, unsigned int, char const*, unsigned int, unsigned int, ReferenceNode const*, char const*, unsigned int, ExceptionSink*) (EncryptionTransforms.cpp:362)
==95532==    by 0x4E239DD: f_encrypt_VsVDVDVDC18_reference_binary_NiND(QoreListNode const*, unsigned long, ExceptionSink*) (ql_crypto.qpp:3362)
==95532==    by 0x4EE9FAC: BuiltinFunctionValueVariant::evalFunction(char const*, CodeEvaluationHelper&, ExceptionSink*) const (BuiltinFunction.h:126)
==95532==    by 0x4CBF6B8: QoreFunction::evalFunction(AbstractQoreFunctionVariant const*, QoreListNode const*, QoreProgram*, ExceptionSink*) const (Function.cpp:1801)
==95532==    by 0x4CB309E: FunctionCallNode::evalImpl(bool&, ExceptionSink*) const (FunctionCallNode.cpp:425)
==95532==    by 0x4C9DE24: AbstractQoreNode::eval(bool&, ExceptionSink*) const (AbstractQoreNode.cpp:172)
==95532==    by 0x4DE2015: QoreValue::eval(bool&, ExceptionSink*) const (QoreValue.cpp:461)
==95532==    by 0x4DE2739: ValueEvalRefHolder::evalIntern(QoreValue) (QoreValue.cpp:614)
==95532==    by 0x4DE261B: ValueEvalRefHolder::ValueEvalRefHolder(QoreValue, ExceptionSink*) (QoreValue.cpp:595)
==95532==    by 0x4DC3F3C: QoreAssignmentOperatorNode::evalIntern(ExceptionSink*, bool&, bool) const (QoreAssignmentOperatorNode.cpp:135)
==95532==    by 0x4F071C5: QoreAssignmentOperatorNode::evalImpl(bool&, ExceptionSink*) const (QoreAssignmentOperatorNode.h:60)
==95532==    by 0x4C9DE24: AbstractQoreNode::eval(bool&, ExceptionSink*) const (AbstractQoreNode.cpp:172)
==95532==    by 0x4DE2015: QoreValue::eval(bool&, ExceptionSink*) const (QoreValue.cpp:461)
...
@davidnich davidnich added this to the 1.9.1 milestone Jul 6, 2022
@davidnich davidnich self-assigned this Jul 6, 2022
@davidnich davidnich added this to To do in Qore Development via automation Jul 6, 2022
davidnich added a commit that referenced this issue Jul 6, 2022
davidnich added a commit that referenced this issue Jul 6, 2022
@davidnich davidnich added the fixed label Jul 6, 2022
Qore Development automation moved this from To do to Done Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant