[DragonFlyBSD - Bug #3074] (Closed) crypto/libressl/crypto/asn1/tasn_enc.c:650]: (warning) Possible null pointer dereference: cont

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Tue Jun 23 05:40:12 PDT 2020


Issue #3074 has been updated by deef.

Status changed from New to Closed

Discussed with swildner on IRC, this should be reported to upstream and DragonFly will import the change when it's updated there.

----------------------------------------
Bug #3074: crypto/libressl/crypto/asn1/tasn_enc.c:650]: (warning) Possible null pointer dereference: cont
http://bugs.dragonflybsd.org/issues/3074#change-13910

* Author: dcb
* Status: Closed
* Priority: Low
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
Source code is

    if (cout && len)
        memcpy(cout, cont, len);

Some paths through the code have cout == NULL. Suggest new code

    if (cout && cont && len)
        memcpy(cout, cont, len);




-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list