Project

General

Profile

Bug #12295

librsc: wrong argument for sizeof

Added by Toomas Soome 10 months ago. Updated 9 months ago.

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

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

/code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: common/librsc.c:154 rscp_init() warn: sizeof(NUMBER)?

It would be better to zero entire buffer.

Testing done: build only.

#1

Updated by Toomas Soome 9 months ago

  • Description updated (diff)
#2

Updated by Electric Monk 9 months ago

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

git commit 13b136d3061155363c62c9f6568d25b8b27da8f6

commit  13b136d3061155363c62c9f6568d25b8b27da8f6
Author: Toomas Soome <tsoome@me.com>
Date:   2020-02-25T18:02:07.000Z

    12295 librsc: wrong argument for sizeof
    Reviewed by: Matthias Scheler <mscheler@tintri.com>
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Approved by: Robert Mustacchi <rm@fingolfin.org>

Also available in: Atom PDF