[DragonFlyBSD - Bug #3074] (New) 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
Wed Oct 11 01:34:29 PDT 2017


Issue #3074 has been reported by dcb.

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

* Author: dcb
* Status: New
* 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