Project

General

Profile

Actions

Bug #10789

closed

md5: NULL pointer errors

Added by Toomas Soome over 4 years ago. Updated over 4 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

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/md5_mod.c:37:
    ../../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/md5_mod.c:236:55: note: in expansion of macro 'NULL'
     static crypto_kcf_provider_handle_t md5_prov_handle = NULL;
                                                           ^~~~
    ../../common/crypto/io/md5_mod.c: In function '_fini':
    ../../common/crypto/io/md5_mod.c:264:22: error: comparison between pointer and integer [-Werror]
      if (md5_prov_handle != NULL) {
                          ^~
    ../../common/crypto/io/md5_mod.c:269:19: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
       md5_prov_handle = NULL;
                       ^
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk over 4 years ago

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

git commit ecc592dc1b98ac0a4ff8d835d90e876a845816f8

commit  ecc592dc1b98ac0a4ff8d835d90e876a845816f8
Author: Toomas Soome <tsoome@me.com>
Date:   2019-04-19T20:20:19.000Z

    10789 md5: 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>

Actions

Also available in: Atom PDF