Comments (7)
Please try with 21a7bbb
from nsjail.
No, if you want to fix it that way, you should just pass -Wno-format-truncation
instead. Which works, while your change does not. ;)
from nsjail.
(I’m building with sed -i 's/-Wno-format-nonliteral/-Wno-format-nonliteral -Wno-format-truncation/' Makefile
, but reported the issue so that it could be fixed properly)
from nsjail.
-Wno-format-truncation
is unrecognized with earlier g++/clang++, so cannot add it directly.
I guess I'll rewrite the cgroups.cc
at some point, though the current snprintf() use is correct, and the warning is too greedy
from nsjail.
Didn’t thought about that. Well if you think that GCC is wrong in outputing such warnings (I admit having insufficient knowledge to tell about that), maybe you should report it to them. They have also been issues with unused variables specified as such triggering the -Wunused-variables for instance in GCC8.
from nsjail.
The warning also for me seems a little to greedy, but I refactored the code to use std::string.
I was able to compile it cleanly with GCC 8, but would be nice if u could verify it too and let me know.
from nsjail.
Works for me too. ;)
from nsjail.
Related Issues (20)
- Disable creation of cgroups in jail
- sched_setaffinity(max_cpus=1) failed: Invalid argument HOT 2
- Safe default /dev mounts? HOT 3
- check pid
- build fails after kafel update HOT 5
- build fails on 32 bit targets HOT 2
- Add millisecond precision to nsjail logs HOT 1
- Package nsjail for ease of installation on Linux
- Build fails on armv7l (32 bit) HOT 2
- mnt:mountPt fails with invalid argument HOT 1
- Better fs isolation HOT 3
- Using nsjail with GPU and OpenGL HOT 1
- Include installation instructions in the README HOT 1
- Compilation fails HOT 1
- Making configs HOT 1
- Updated vendored kafel to enable build on gcc13 HOT 1
- Python Tracing and Runtime security
- Build failed on arm64 with clang-15 HOT 1
- Build Fails when compiling on musl-libc system HOT 6
- config.cc uses old protobuf log handling API that was removed in protobuf 22.0 HOT 1
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 nsjail.