The size count paramters is not the same with actual buffer length in memset functions.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Won't Fix
|
Low
|
YeHuiSheng |
Bug Description
The size count paramters is not the same with actual buffer length in memset functions.
case 1:
In the function daemon_service_run (alarminit.cpp metal module), memset use MAX_ALARM_
Obviously, that is a clerical error.
char msg [MAX_ALARM_
int bytes = mtcalarm_
case 2:
In the lmonHdlr.cpp, the parameter interfaces is defined as a struct array.
However, in the begining of funciton daemon_service_run (lmonHdlr.cpp metal module), interfaces is initialed by memset with sizeof(
Changed in starlingx: | |
assignee: | nobody → YeHuiSheng (hsye) |
Fix proposed to branch: master /review. opendev. org/673196
Review: https:/