Unable to compile stx-metal project with -Werror=format-security flag
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Won't Fix
|
Medium
|
Victor Manuel Rodriguez Bahena |
Bug Description
Title
-----
Unable to compile pingUtil.cpp with -Werror=
Brief Description
-----------------
Function pingUtil.cpp can not be compiled if flag -Werror=
Severity
--------
Minor: System/Feature is usable but with security issues.
Steps to Reproduce
------------------
Add -Werror=
Expected Behavior
------------------
Project compilation should be completed with no issues.
Actual Behavior
----------------
Project can not be compiled if flag is set.
Reproducibility
---------------
100%
System Configuration
-------
All compilation environments
Branch/Pull Time/Commit
-------
Master / November 14 2018, Commit: 0d9bb5e
Timestamp/Logs
--------------
pingUtil.
snprintf ( &ping4_tx.msg[0], PING_MESSAGE_LEN, ping_info.message );
pingUtil.
pingUtil.
snprintf ( &ping6_tx.msg[0], PING_MESSAGE_LEN, ping_info.message );
pingUtil.
tags: | added: stx.security |
information type: | Private Security → Public Security |
Changed in starlingx: | |
status: | New → Triaged |
assignee: | nobody → Victor Manuel Rodriguez Bahena (vm-rod25) |
importance: | Undecided → Medium |
Same issue is also seen on rmonHdlr.cpp, while compiling with -Werror= format- security flag, caused by snprintf function. Adding a file containing whole error information: rmonHdlr.log