Comments (11)
Sure, that is a good point- it is a common standard now.
To fix that we need to:
- add verification to our CI.
- resolve existing issues.
It is not critical, so I will create appropriative internal task, hopefully we can resolve that until next release.
Reopening then.
from ledmon.
Could you provide me versions of gcc and make packages?
from ledmon.
Latest gcc 12.1.1.
from ledmon.
Thanks. In attached log I see that these errors are expected and coms from additional flag "-Werror=format-truncation". We use buffer with PATH_MAX size, which is the same as components size. In case that all buffer will be written, output will be truncated, which is expected.
I suggest you to turn off this flag to avoid these errors.
from ledmon.
Please do not swipe that under the carpet.
from ledmon.
Linux supports name with a size up to 4096, which is PATH_MAX. That size shall be our max length.
If we are concatenating many paths like in those cases, we accept the risk of buffer truncation. I believe that issues cannot occur real live, especially that we are scanning sysfs, interface created by kernel.
I don't see any advantage of creating dedicated and precisely calculated memory for each buffer. For me it is more bug prone and makes code less understandable.
For me it is not an issue but if it is important to you we will try to meet your requirements. Please elaborate why this flag is important for you.
from ledmon.
No feedback, closing.
Fell free to reopen the issue if necessary.
from ledmon.
Please do not swipe that under the carpet.
I've provided feedback #102 (comment)
from ledmon.
Simple I don't see any reason why only ledmon shoud be only exception about not pasing compile with
-Werror=format-truncation
. I have now cleaned +4.2k packages. All are correctly build with -Werror=format-truncation
.
from ledmon.
Thank you 👍
from ledmon.
Closing, the flag is in configure:
https://github.com/intel/ledmon/blob/master/configure.ac#L64
from ledmon.
Related Issues (20)
- Regex should be compiled during conf file parsing HOT 1
- Duplicated short parameter "c" for two options
- RPL + R680E not work HOT 5
- FIX possible memflood HOT 5
- LEDMON 1.0 HOT 3
- Ledctl: add command to retrieve best controller
- Remove not needed check in ibpi2str function
- Strange behavior with AMD SGPIO controller HOT 3
- Status of AMD Support HOT 27
- tests/runtests.sh failure when testing SES HOT 6
- Cannot locate multipathing nvme block device by ledctl in RHEL 9.2 HOT 2
- [ENHANCEMENT] Unify messaging for non-existent and not supported devices. HOT 1
- 1.0.0: build fails HOT 5
- 1.0 configure fails HOT 5
- ledctl: /dev/nvme0n1: device not supported HOT 3
- [BUG]: Incompatible API change was made with https://github.com/intel/ledmon/pull/211 HOT 2
- [ENHANCEMENT] adjust structs with device properties - code improvement
- [ENHANCEMENT] add README to test directory
- [ENHANCEMENT] Refactor assigning value ibpi_prev in _send_msg.
- [QUESTION] LED indication not working on Supermicro AMD system HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ledmon.