2 ms·
Looks like avoiding dependencies and snippets is a good way to mitigate this. In my own work, I use almost no dependencies (aside from compilers and built-in A
by ChrisMarshallNY 5y ago
Looks like avoiding dependencies and snippets is a good way to mitigate this.
In my own work, I use almost no dependencies (aside from compilers and built-in APIs). Scratch that. I use a lot of dependencies, but ones that I have written, and generally rewrite snippets, when I use them.
Also, very little of the code I see, has comments.
Like, any comments; even headerdoc comments.
> Green said the good news is that the researchers conducted a widespread vulnerability scan, but were unable to find evidence that anyone was exploiting this. Yet.
… “yet” …
I know that I’m a “dependency curmudgeon,” but stuff like this just serves to reinforce my posture.
- Cthulhu_ 5y agoBut what if this is slipped into your compiler? Your operating system's kernel? A top voted Stack Overflow answer? You can't (or it's infeasible to) check and control everything.
- _3u10 5y agoYes, you're totally safe then. I've never heard of standard libraries having problems that affect security, certainly not the str* family of functions.
- ChrisMarshallNY 5y agoAny particular reason for the nasty? I thought we didn't do that kind of thing, around these parts, but I'm often wrong.
- _3u10 5y agoThe pain of having worked under these conditions of not using libraries, usually having to work with subpar libraries that were developed internally. Like oh, hey, we need a database, great, lets roll our own. Or the ancient version of whatever lib shipped with the OS that is full of bugs solved in subsequent versions. I see that you now use a lot of dependencies, and retract my statement.
- ChrisMarshallNY 5y agoFeel free to check out my work. You’ll see the quality bar I set for myself. Almost all of the repos are code that I incorporate into my projects. I just. Plain. Don’t. Trust. most code out there. I can see the kitchen from the lunch counter, and I’m a damn good cook, myself. I won’t tell anyone else what to do (unless I’m paying them), but I refuse to add code to my projects that I don’t trust completely (which is, I know, not a guarantee, but it’s a pretty good bet). I have to rely on the core libraries and development tools I use, but, if I have my druthers, I am picky as hell. Seriously. Look at my stuff. You’ll see that I put my work where my mouth is.
- ChrisMarshallNY 5y agosigh...Why does it have to be "all or nothing"? These logical fallacies are pretty much a standard in these discussions. Either have 100%, ironclad security, or "Who cares? YOLO! STDs be damned" abandon? We do what we can to make sure what we write is as good as possible. I lock my car door, when I get out. I know that it won't stop a determined thief, but it will avoid problems from the casual knucklehead.