Project

General

Profile

Bug #10787

rsa: NULL pointer errors

Added by Toomas Soome 8 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2019-04-14
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

NULL pointer errors:

    In file included from ../../common/sys/param.h:48:0,
                     from ../../common/sys/t_lock.h:38,
                     from ../../common/sys/systm.h:39,
                     from ../../common/crypto/io/rsa.c:31:
    ../../common/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/crypto/io/rsa.c:321:55: note: in expansion of macro 'NULL'
     static crypto_kcf_provider_handle_t rsa_prov_handle = NULL;
                                                           ^~~~
    ../../common/crypto/io/rsa.c: In function '_fini':
    ../../common/crypto/io/rsa.c:344:22: error: comparison between pointer and integer [-Werror]
      if (rsa_prov_handle != NULL) {
                          ^~
    ../../common/crypto/io/rsa.c:348:19: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
       rsa_prov_handle = NULL;
                       ^
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 8 months ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit b4a44cf294b47530f872176be732538fdf3536a0

commit  b4a44cf294b47530f872176be732538fdf3536a0
Author: Toomas Soome <tsoome@me.com>
Date:   2019-04-19T20:13:21.000Z

    10787 rsa: NULL pointer errors
    Reviewed by: Andy Stormont <astormont@racktopsystems.com>
    Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF