Git Product home page Git Product logo

Comments (11)

mtkaczyk avatar mtkaczyk commented on July 18, 2024 1

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.

ktanska avatar ktanska commented on July 18, 2024

Could you provide me versions of gcc and make packages?

from ledmon.

kloczek avatar kloczek commented on July 18, 2024

Latest gcc 12.1.1.

from ledmon.

ktanska avatar ktanska commented on July 18, 2024

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.

kloczek avatar kloczek commented on July 18, 2024

Please do not swipe that under the carpet.

from ledmon.

mtkaczyk avatar mtkaczyk commented on July 18, 2024

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.

mtkaczyk avatar mtkaczyk commented on July 18, 2024

No feedback, closing.
Fell free to reopen the issue if necessary.

from ledmon.

kloczek avatar kloczek commented on July 18, 2024

Please do not swipe that under the carpet.

I've provided feedback #102 (comment)

from ledmon.

kloczek avatar kloczek commented on July 18, 2024

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.

kloczek avatar kloczek commented on July 18, 2024

Thank you 👍

from ledmon.

mtkaczyk avatar mtkaczyk commented on July 18, 2024

Closing, the flag is in configure:
https://github.com/intel/ledmon/blob/master/configure.ac#L64

from ledmon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.