Project

General

Profile

Bug #3074

crypto/libressl/crypto/asn1/tasn_enc.c:650]: (warning) Possible null pointer dereference: cont

Added by dcb about 1 month ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
10/11/2017
Due date:
% Done:

0%


Description

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);

Also available in: Atom PDF