Project

General

Profile

Actions

Bug #11138

closed

libsun_ima: NULL pointer errors

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

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

Description

NULL pointer errors:

    ../common/ima.c: In function 'IMA_AddStaticDiscoveryTarget':
    ../common/ima.c:1334:20: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
       *closeBracketPos = NULL;
                        ^
    ../common/ima.c:1349:25: error: comparison between pointer and integer [-Werror]
        if (*closeBracketPos != NULL) {
                             ^~
    ../common/ima.c:1370:14: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
        *colonPos = NULL;
                  ^
    ../common/ima.c:1375:18: error: comparison between pointer and integer [-Werror]
        if (*colonPos != NULL) {
                      ^~
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk over 3 years ago

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

git commit 563485af1b25ed721b3a7a25a0c9153999957f71

commit  563485af1b25ed721b3a7a25a0c9153999957f71
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-03T07:27:40.000Z

    11138 libsun_ima: NULL pointer errors
    Reviewed by: John Levon <john.levon@joyent.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Actions

Also available in: Atom PDF