Comments (7)
Wow... I don't even... blarg?
from libxdg-basedir.
Just look at the code more carefully. It clears memory until n wraps around and becomes negative... You probably want something like
static void xdgZeroMemory(void* p, int n)
{
for (; n > 0; n--)
((char*)p)[n] = 0;
}
from libxdg-basedir.
I doubt this is legit; i.e. not what people expect to be like the libxdg-basedir from n.ethz.ch... Though, I wish it was
from libxdg-basedir.
Huh? What are you referring to with this? This issue? My suggestion? This whole repository?
from libxdg-basedir.
@tweerwag your suggested fix is incorrect. Consider the simple case of xdgZeroMemory(p, 1)
- it should only set p[0] = 0
, instead it will set p[1] = 0
(and will not set p[0] = 0
). I have a correct fix in my fork.
from libxdg-basedir.
Oops... Good to hear someone is picking up maintaining!
from libxdg-basedir.
Yeah, sorry for the noise there. IIRC, I had been trying to find a recent version of the codebase and wasn't sure if this repo was dead, active, separate from the original... Thank you
from libxdg-basedir.
Related Issues (5)
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 libxdg-basedir.