Memory Safe C++
Вставка
- Опубліковано 15 бер 2024
- Live on Twitch: / lowlevellearning
🏫 COURSES 🏫 Check out my new courses at lowlevel.academy
🙌 SUPPORT THE CHANNEL 🙌 Become a Low Level Associate and support the channel at / lowlevellearning
Why Do Header Files Exist? • why do header files ev...
How Does Return Work? • do you know how "retur...
🔥🔥🔥 SOCIALS 🔥🔥🔥
Low Level Merch!: lowlevel.store/
Follow me on Twitter: / lowleveltweets
Join me on Discord!: / discord - Наука та технологія
learn to write safe C at lowlevel.academy 🙃
Why is it unsafe?😢
@@silloo2072 For comparison, C is like America. Everyone is allowed to hold and use a gun, say they are using it safely but nobody is going to check. Result is another school shooting.
@@silloo2072I’m not a programmer but my understanding is that C does not manage memory for you, so poor memory management by the author often makes the software very vulnerable to exploitation
@@notNajimi yeah I know that but thanks for answering my question!
arbitrary length arithmetic with gmp
Okay this is the sort of click bait I can get behind
My first thought too!
Ezsnippet technique
I feel like it's not even clickbait. Just a dating add for LLP
Best clickbait ever
It's not clickbait. It does what it says on the tin
I thought it's a UA-cam glitch 😂😂
Bro same 😂
Same 😂😂😂
same lol
Same Hahahah
same LOL
I shared it with my gf because of the first part, you're reaching a new target audience with this 😂
This shit is hilarious.
Same here 😂
Same 😂
STOP!! YOU HAVE VIOLATED MEMORY! Pay the court a fine or serve your sentence
Your stolen addresses are now forfeit!
After you have served your sentence. . . there's a settlement that needs your help. I'll mark it on the map.
I am calling the cops..
*resist arrest*
@@bobmike2373Then pay with your buffer!
If you date him, you'll know that once you die, your memory will be save.
The d wasn't saved
As a JavaScript developer this is very helpful
How
The similarity between C and JS is that both languages serve you little warnings about error situations.
The difference is that C solves this by not doing anything more than you asked (programmed) it to do, while JS makes all kinds of unexpected conclusions by coercing your values in all kinds of ways it without asking you, causing different kinds of silent failures or unexpected situations.
What is better? A difficult to debug segmentation fault or 1 plus 1 equals 11 situation that makes no sense?
@@user-vh4mf4ux2mit's a joke
@@jongeduard Typecasting is not something exclusive to Javascript and is entirely manageable if you know what you're doing with it, a lot of people hate it and that's why Typescript and JSDoc are a thing, but it's still not as big an issue as people make it out to be
Peak trolling right here :D
Not only is he not cheating, he's making way more money than the guy that's cheating
but where's drama in that
@Fanaz10 that code be lookin pretty dramatic
@@Fanaz10 Are you female?
@@Ebani only a female would ask such question
A small correction…”the guy she is cheating with”
As a C programmer I can confirm this
I don't cheat because I don't have anyone to cheat on, or with
One day you will, soon perhaps 😊😊 cheers dawg
@@seansingh4421 it's all about the action, and if you aren't making it happen, it won't happen
@@seansingh4421wait...what?
I also hope you find someone to cheat on.
Good luck with your future cheating endeavours!
HALT! YOU HAVE COMMITTED CRIMES AGAINST MALLOC AND HER PROCESSES. WHAT SAY YOU?
As someone who has used GDB and knows exactly what he was talking about and doing...
I feel very called out by this.
cringe
Bro is cooking 🔥
Memory safe C++ 👍
To answer the question again, I’m just chilling in my garage listening to music thinking I could probably afford a new tool box in a month or two. Also I gotta wash the dogs (she asked if I could wash the dogs). I really don’t like washing the dogs…. So I’m gunna measure this one spot where I think this new tool box could go again (I know it will fit there’s nothing there) then I’ll wash the dogs.
Simple man, simple life :)
Pfffftttt…. Hahaha!…. I’m starting to get the feeling this guy wants a tool box?….hmmm?
I love the beginnings to these videos now, i never used to interact but i did watch them, hilarious..love it.
So, from the code I can see in this short, this is the function:
void handleClient(int cfd) {
std::cout
nice example && yes you are completely right dude.
you're useless
Some ppl would still say “If you follow 100500 rules of best f practices, c++ can be safe as rust”
@@12MrRetro yes that is quite true, but that is why rust is growing currently because it forces the developer to follow best practices. but seriously & realistically speaking, C/C++ originated at a time when programming was still done by a very few people, nowadays in the age of ultron (i mean chatgpt) every tom dick & harry wanna build the top revernue earning application using a few well stated prompts (which ain''t programming but the final output makes one think other wise) so in comparision when rust still is in infancy such programming paradigms in which the compiler & language requires following of best practices is quite natural & expected. And with the complexity of today's software it is a good thing that languages like rust are being used over languages like c/c++ (note i prefer c/cpp over every other language but that does not mean i enjoy myself shooting myown foot (except when i am feeling like it : -) ).
Did he compile it with the symbols intact?
That's literally how we write cheats 😅
I swear this guy has the best bait intros HAHAHA
I love this format.
This kinda sounds close to Cheat Engine stuff though (the memory editor)
If you spend most of your time talking about, thinking about and/or worrying about other people and your or their sex lives, maybe consider a hobby.
says the mf who spends 10 hours a day on yt shorts
Spectacularly missing the point of her trying to find a man who doesn't cheat because male cheating is so common
I love how you make a joke out of this. Laughing and learning
“wyd” homie im having a fruitful marriage
You can violate memory, but never the family
Damn i love this channel 😂😂
That was funny. Subbed
Best tip to write memory safe code? Don't use c.
Keep these coming these have been cracking me up 😂
The information is phenomenal
0 educational value to this, you didn't explain anything?
Yea absolute waste of time.
yeah, i also am wondering when he just show addresses and don't fully explain
Are you dense?
I guess you missed the joke
@@Edg30fd3w0r1d Exactly! The whole video is sarcasm. There is no such thing as "Memory Safe C++".
"Private" var is not really private in C lol
Good men are always out there, women just always think the beast (assholes) will turn into the prince that will save the princess.
Sadly our society thinks it’s cool to be a douche, but nobody learns to be decent.
Thanks I’ll remember that! C has been like decrypting an ancient wizard tome for me; and just as fun!
Thats low level hacker stuff 🏴☠️
Entry level hacker learning 🏴☠️
Yay
I think you might be acoustic
The joke is funny, but as a programmer of 20 years I promise you this is such a stupid way to live life. I may be jaded, but I’ve always felt like I was wasting so much of my time with dependency versioning, and querying optimization, and “ohh how do I chunk this array to do batch processing” like who gives af I want to be laying in a field eating peaches, that’s it
I'm in awe of your talent.
This guy is a legend
Can I get link to full video please, really need this..
Once you see Nick from The Yard podcast you cannot unsee..
man, I don't even care a lot about coding, but the transitions are pure gold
Getting rdy to sitdown in my pjs for work and this just made me lol 😂
That was the best stitch ever.
No this doesn’t mean that you can exploit the program because no real world application will be published without using the hardening flags to compile it.
Aaaaand now I'm subscribed. 😄 Trying to learn code. Definitely wanting to learn from someone with a great sense of humor!
Finally, my recommendations have reached my people
❌ Violating girlfriend's trust
✅ Violating memory safety
❌ Has girlfriend
Been writing safe c for a while and can confirm i never cheat
Lovin the intros
3am: where were you?
Me: banging out a ROP chain, smashing stack protections. Receipts and PoC to prove it
Man I really want to get into routinely learning more of this stuff.
Do you guys have a Discord?
I thought I clicked on the wrong video lol
Theres two types of dudes who dont cheat, hard workers, and nerds. The dude majoring in business promising hell be a millionaire in a year is the dude whos gonna cheat
my brain instantly switched to understanding even though i don't know C at all
This is so fuckin true
I build with Lego and make cars with realistic suspension and pumping engines. Sometimes I our motors and Bluetooth hubs in there to make them like RC cars that I built out of Lego. It’s so fun.
I thought UA-cam bugged out for a second, it took re watching to realize it was a meme lol
You did a great job.
In the bay area that guy doesn’t cheat but he is in a polyamorous relationship.
I have been accused of cheating in every single relationship I have ever been in, I have never once done it. I gave up on all relationships 11 years ago. And now all I do is work and enjoy my peace.
Accept it, ladies. Embrace it. Embrace your programmers.
Bro named violation of memory safety http😭
Reminds me of the Apple II Monitor. There WAS no memory protection
That is an accurate response. If your man is spending his free time coding, he's not the type to cheat.
Love that videos :D Really what we need, not relationships and shitty songs, only CODING
Me personally, I’m too busy trying to reach a 4 digit rank on osu! while she gives me encouraging words of support 😂❤
He’s making 6 figures building the world up. Do you bro and hold the lines.
Secret meaning behind David Guetta's song was really about .. "all the crazy code I did tonight .. those will be the best memories .."
"we literally like are like a low level programmer like watch me literally look at machine code, like im so like low level, like im literally so smart"
Yea normal people talk like him, don't be a pretentious antisocial programmer stereotype..
lol ain’t wrong except this time I’m painting my car rims
Hilarious start of the vid 😂
Can’t lie I like this bait and switch 😅 I’m entertained 👍🏾
Accurate.
“Men who don’t cheat wyd”
Sitting at home happily w my girl
Omg this is perfect
I need to learn about these things
And when she asks me what I’m coding the answer always leaves her in a state of 👁️👄👁️
The short answer is being productive.
How to write memory safe C:
1. Start a new Rust project
I see that this is a weird C and C++ mix. However, I really can't see the problem with the code with regard to memory management. Given the comments, it probably makes me look stupid to admit it, but I really don't see the problem regarding memory safety. Sure, it will print some garbage, as the string isn't properly "right-sized" but there should be no invalid memory access. It should all be contained to the memory of the array.
I agree, I don't see memory violations stricto sensu. But the garbage it will print out will be the contents of the stack, maybe leaking some sensitive information (like cryptographic keys or whatever).
@@joelstienlet1641 Maybe. However, I dislike that the guy makes it sound as if it was a C++ problem. You can do the same mistake with C. Actually, if C++ was used properly here, instead of mixing C and C++, the likelihood for this mistakes would also be way lower.
As a CSS3 expert this is very useful
Damn, I know what he's talking about.. i need to tough grass
I'm going to start learning code now. Put it off for long enough I got my CCNA, RHCSA, now it's time take on coding.
😂😂😂 legitimate take on this.
living a good life, avoiding degeneracy.
As a long time C++ dev, the problem is… you do not know how to write memory safe C++
the point of the video was the joke a the start.
I'm pretty sure the rest is out of context
i love all ur vids
Dumb question: how do you know those are stack addresses ?
effs are memory addresses. Memory safe c++. I learned something today.
Got a nerd husband myself. I just have to feign interest in anything nerdy and I’m golden.😂
i love this
Hey! Can you one day do a tour of your operating system?
Dating has become monopolized by a subset of hyper attractive men and many women are still too lame to figure it out yet. These men in the past would face barriers before to stop their monopoly but feminism tore that fence down.
I love this but don't understand yet
Law & Order Special Victims Unit Season 93 Episode 7: Memory Fault.
busy feeling unwanted
I don’t think this is possible in new versions😅. You can’t exploit memory that easily since we have randomization😅😅
my dirtbikes and truck take all my money so i stay home and eat chicken at night.
Fing hilarious 😂
Omg man made me laugh hard