Memory Safe C++

Sdílet
Vložit
  • čas přidán 15. 03. 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
  • Věda a technologie

Komentáře • 671

  • @valmirius
    @valmirius Před 4 měsíci +6289

    Okay this is the sort of click bait I can get behind

  • @Movie-xz3hw
    @Movie-xz3hw Před 4 měsíci +3175

    I thought it's a CZcams glitch 😂😂

  • @samelosito
    @samelosito Před 4 měsíci +1619

    I shared it with my gf because of the first part, you're reaching a new target audience with this 😂

  • @nicholasfinch4087
    @nicholasfinch4087 Před 4 měsíci +757

    STOP!! YOU HAVE VIOLATED MEMORY! Pay the court a fine or serve your sentence

    • @Darkness18641
      @Darkness18641 Před 4 měsíci +44

      Your stolen addresses are now forfeit!

    • @Clasped003
      @Clasped003 Před 3 měsíci +13

      After you have served your sentence. . . there's a settlement that needs your help. I'll mark it on the map.

    • @MrNeelthehulk
      @MrNeelthehulk Před 3 měsíci +2

      I am calling the cops..

    • @bobmike2373
      @bobmike2373 Před 3 měsíci +5

      *resist arrest*

    • @sindhurtej9638
      @sindhurtej9638 Před 3 měsíci +6

      ​@@bobmike2373Then pay with your buffer!

  • @JonnesTT
    @JonnesTT Před 3 měsíci +291

    If you date him, you'll know that once you die, your memory will be save.

    • @ralek592
      @ralek592 Před 2 měsíci

      The d wasn't saved

  • @AzurePages
    @AzurePages Před 4 měsíci +365

    As a JavaScript developer this is very helpful

    • @user-vh4mf4ux2m
      @user-vh4mf4ux2m Před 4 měsíci +10

      How

    • @jongeduard
      @jongeduard Před 4 měsíci +79

      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?

    • @Justin-fq8dt
      @Justin-fq8dt Před 4 měsíci

      @@user-vh4mf4ux2mit's a joke

    • @liquidsnake6879
      @liquidsnake6879 Před 4 měsíci +24

      @@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

    • @gro967
      @gro967 Před 4 měsíci +13

      Peak trolling right here :D

  • @procyon.lotor4
    @procyon.lotor4 Před 4 měsíci +207

    Not only is he not cheating, he's making way more money than the guy that's cheating

    • @Fanaz10
      @Fanaz10 Před 4 měsíci +20

      but where's drama in that

    • @procyon.lotor4
      @procyon.lotor4 Před 3 měsíci +35

      @Fanaz10 that code be lookin pretty dramatic

    • @Ebani
      @Ebani Před 3 měsíci +1

      ​@@Fanaz10 Are you female?

    • @Fanaz10
      @Fanaz10 Před 3 měsíci +6

      @@Ebani only a female would ask such question

    • @sgt92
      @sgt92 Před 3 měsíci +1

      A small correction…”the guy she is cheating with”

  • @TheCodeHunter
    @TheCodeHunter Před 4 měsíci +42

    As a C programmer I can confirm this

  • @kaatlev
    @kaatlev Před 4 měsíci +10

    I love the beginnings to these videos now, i never used to interact but i did watch them, hilarious..love it.

  • @delta2080
    @delta2080 Před 2 měsíci +8

    Bro is cooking 🔥

  • @DaGlitchMaster
    @DaGlitchMaster Před 3 měsíci +44

    As someone who has used GDB and knows exactly what he was talking about and doing...
    I feel very called out by this.

  • @OmegaF77
    @OmegaF77 Před 2 měsíci +20

    HALT! YOU HAVE COMMITTED CRIMES AGAINST MALLOC AND HER PROCESSES. WHAT SAY YOU?

  • @NoHandle684
    @NoHandle684 Před 2 měsíci +4

    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.

  • @aryomuhammad8254
    @aryomuhammad8254 Před 3 měsíci +43

    Memory safe C++ 👍

  • @iandillard9614
    @iandillard9614 Před 3 měsíci +54

    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.

    • @sidequestsally
      @sidequestsally Před 2 měsíci +2

      Simple man, simple life :)

    • @nathanrice6589
      @nathanrice6589 Před 2 měsíci +4

      Pfffftttt…. Hahaha!…. I’m starting to get the feeling this guy wants a tool box?….hmmm?

  • @yukisnoww
    @yukisnoww Před 4 měsíci +8

    I swear this guy has the best bait intros HAHAHA

  • @ninjasack9134
    @ninjasack9134 Před 4 měsíci +115

    I don't cheat because I don't have anyone to cheat on, or with

    • @seansingh4421
      @seansingh4421 Před 3 měsíci +14

      One day you will, soon perhaps 😊😊 cheers dawg

    • @ninjasack9134
      @ninjasack9134 Před 3 měsíci

      @@seansingh4421 it's all about the action, and if you aren't making it happen, it won't happen

    • @Quancept
      @Quancept Před 3 měsíci

      ​@@seansingh4421wait...what?

    • @poppers7317
      @poppers7317 Před 3 měsíci +21

      I also hope you find someone to cheat on.

    • @Eddie276
      @Eddie276 Před 3 měsíci +7

      Good luck with your future cheating endeavours!

  • @waffleswafflson3076
    @waffleswafflson3076 Před 3 měsíci +3

    I love this format.

  • @kuhluhOG
    @kuhluhOG Před 4 měsíci +113

    So, from the code I can see in this short, this is the function:
    void handleClient(int cfd) {
    std::cout

    • @abbasbvohra
      @abbasbvohra Před 4 měsíci +16

      nice example && yes you are completely right dude.

    • @0xXKARLOSXx0
      @0xXKARLOSXx0 Před 4 měsíci

      you're useless

    • @12MrRetro
      @12MrRetro Před 3 měsíci +12

      Some ppl would still say “If you follow 100500 rules of best f practices, c++ can be safe as rust”

    • @abbasbvohra
      @abbasbvohra Před 3 měsíci

      @@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 : -) ).

    • @DaGlitchMaster
      @DaGlitchMaster Před 3 měsíci

      Did he compile it with the symbols intact?

  • @kademeyer9993
    @kademeyer9993 Před 3 měsíci +2

    “wyd” homie im having a fruitful marriage

  • @sandtrick
    @sandtrick Před měsícem

    I love how you make a joke out of this. Laughing and learning

  • @ali_randomNumberHere
    @ali_randomNumberHere Před 4 měsíci +31

    That's literally how we write cheats 😅

  • @StevenCroghan
    @StevenCroghan Před 4 měsíci

    Keep these coming these have been cracking me up 😂

  • @ronsijm
    @ronsijm Před 4 měsíci +4

    This kinda sounds close to Cheat Engine stuff though (the memory editor)

  • @Teh_Random_Canadian
    @Teh_Random_Canadian Před 4 měsíci +3

    That was funny. Subbed

  • @sethgaston8347
    @sethgaston8347 Před 2 měsíci

    Thanks I’ll remember that! C has been like decrypting an ancient wizard tome for me; and just as fun!

  • @marvellousruni8475
    @marvellousruni8475 Před 4 měsíci +1

    Damn i love this channel 😂😂

  • @DigitalPaintingRecords
    @DigitalPaintingRecords Před 3 měsíci

    The information is phenomenal

  • @user-uz1lr3uy7x
    @user-uz1lr3uy7x Před 3 měsíci

    I'm in awe of your talent.

  • @FutureWiredTec
    @FutureWiredTec Před 4 měsíci +25

    This guy is a legend

  • @GhostRevenge36
    @GhostRevenge36 Před 2 měsíci

    Aaaaand now I'm subscribed. 😄 Trying to learn code. Definitely wanting to learn from someone with a great sense of humor!

  • @LethinGabbins
    @LethinGabbins Před měsícem

    That was the best stitch ever.

  • @DaddyUmp007
    @DaddyUmp007 Před 2 měsíci

    Getting rdy to sitdown in my pjs for work and this just made me lol 😂

  • @zwete
    @zwete Před 14 dny

    He's actually editing game files for unlimited health and ammo.

  • @TheMadStu
    @TheMadStu Před 3 měsíci

    Finally, my recommendations have reached my people

  • @MaxPower-ek7gi
    @MaxPower-ek7gi Před 3 měsíci

    man, I don't even care a lot about coding, but the transitions are pure gold

  • @podunkest
    @podunkest Před 2 měsíci +31

    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.

    • @poleve5409
      @poleve5409 Před 2 měsíci +3

      says the mf who spends 10 hours a day on yt shorts

    • @legroom4575
      @legroom4575 Před 2 měsíci

      Spectacularly missing the point of her trying to find a man who doesn't cheat because male cheating is so common

  • @codexofkrypton6961
    @codexofkrypton6961 Před 2 měsíci

    Can’t lie I like this bait and switch 😅 I’m entertained 👍🏾

  • @ChaseHatch
    @ChaseHatch Před 2 měsíci

    3am: where were you?
    Me: banging out a ROP chain, smashing stack protections. Receipts and PoC to prove it

  • @JimMaz
    @JimMaz Před měsícem

    ❌ Violating girlfriend's trust
    ✅ Violating memory safety
    ❌ Has girlfriend

  • @sethbaus
    @sethbaus Před 3 měsíci

    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.

  • @user-eo5eb9re9l
    @user-eo5eb9re9l Před 3 měsíci

    You did a great job.

  • @PabloSanchez-gi8hd
    @PabloSanchez-gi8hd Před 4 měsíci +65

    Thats low level hacker stuff 🏴‍☠️

  • @alexanderd.7818
    @alexanderd.7818 Před 3 měsíci +2

    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.

  • @khasanshadiyarov
    @khasanshadiyarov Před 4 měsíci +2

    You can violate memory, but never the family

  • @dabbopabblo
    @dabbopabblo Před 3 měsíci

    I thought CZcams bugged out for a second, it took re watching to realize it was a meme lol

  • @sierragutenberg
    @sierragutenberg Před 3 měsíci +2

    I thought I clicked on the wrong video lol

  • @rougeyuki
    @rougeyuki Před 3 měsíci +1

    Once you see Nick from The Yard podcast you cannot unsee..

  • @belly233
    @belly233 Před 4 měsíci +1

    Hilarious start of the vid 😂

  • @funnyduck6326
    @funnyduck6326 Před 3 měsíci +1

    Love that videos :D Really what we need, not relationships and shitty songs, only CODING

  • @keyednation
    @keyednation Před měsícem

    I need to learn about these things

  • @callidus5586
    @callidus5586 Před měsícem

    Nice , learning with out a rickroll. -subscribing.

  • @Xyrer
    @Xyrer Před 2 měsíci +3

    "Private" var is not really private in C lol

  • @ScottyG-wood
    @ScottyG-wood Před měsícem

    😂😂😂 legitimate take on this.

  • @koolerpure
    @koolerpure Před měsícem

    lol ain’t wrong except this time I’m painting my car rims

  • @brianlogan4740
    @brianlogan4740 Před 2 měsíci

    Man I really want to get into routinely learning more of this stuff.
    Do you guys have a Discord?

  • @-average
    @-average Před 3 měsíci

    my brain instantly switched to understanding even though i don't know C at all

  • @igormicovic
    @igormicovic Před 4 měsíci +1

    Can I get link to full video please, really need this..

  • @janebellco
    @janebellco Před 2 měsíci

    Got a nerd husband myself. I just have to feign interest in anything nerdy and I’m golden.😂

  • @alphacentauri8035
    @alphacentauri8035 Před 3 měsíci

    As a CSS3 expert this is very useful

  • @PistonAvatarGuy
    @PistonAvatarGuy Před 18 dny

    WYD? I taught myself AutoCAD and SketchUP and spent ridiculous amounts of time making drawings/models of things that I wish existed, read books and online articles/forums, went on hikes in the lava flows near my house, watched a LOT of TV and movies, played video games, listened to music, worked on cars, went online and talked about cars, went on long drives for no reason, watched a lot of videos online and spent huge amounts of time having discussions in the comment sections... and, wow, life would be great if money weren't an issue.

  • @TheXenoEnder
    @TheXenoEnder Před 3 měsíci

    The nerd jokes are evolving, and I'm here for it 😂😭💀

  • @padronic
    @padronic Před měsícem

    Damn, I know what he's talking about.. i need to tough grass

  • @Dgr__003
    @Dgr__003 Před 2 měsíci

    “Men who don’t cheat wyd”
    Sitting at home happily w my girl

  • @chrisrose9314
    @chrisrose9314 Před 3 měsíci

    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.

  • @petephelp971
    @petephelp971 Před 4 měsíci +6

    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.

  • @ttvbrxkens0ul
    @ttvbrxkens0ul Před 19 dny

    Me personally, I’m too busy trying to reach a 4 digit rank on osu! while she gives me encouraging words of support 😂❤

  • @escapegulag4317
    @escapegulag4317 Před 2 měsíci

    living a good life, avoiding degeneracy.

  • @dijik123
    @dijik123 Před měsícem

    Omg man made me laugh hard

  • @grossteilfahrer
    @grossteilfahrer Před 3 měsíci

    Reminds me of the Apple II Monitor. There WAS no memory protection

  • @ZinoHaro
    @ZinoHaro Před 3 měsíci

    Reminds me of reverse engineering malware days ahaha

  • @WillLivingston2023
    @WillLivingston2023 Před 3 měsíci +1

    In the bay area that guy doesn’t cheat but he is in a polyamorous relationship.

  • @russellallen5088
    @russellallen5088 Před 2 měsíci

    He’s making 6 figures building the world up. Do you bro and hold the lines.

  • @bukuljaboy
    @bukuljaboy Před 3 měsíci

    Secret meaning behind David Guetta's song was really about .. "all the crazy code I did tonight .. those will be the best memories .."

  • @jeremiaholliviere9642
    @jeremiaholliviere9642 Před 3 měsíci

    i love all ur vids

  • @anuradhaamarasinghe9649
    @anuradhaamarasinghe9649 Před 2 měsíci +1

    Dumb question: how do you know those are stack addresses ?

  • @Sumpydumpert
    @Sumpydumpert Před měsícem

    Says he’s not cheating but just violating the memory 🤣🤣

  • @ThishsitwontgetmynameFoFF
    @ThishsitwontgetmynameFoFF Před měsícem

    Bro named violation of memory safety http😭

  • @bestinfinity1
    @bestinfinity1 Před 4 měsíci +1

    Been writing safe c for a while and can confirm i never cheat

  • @adamkeasey655
    @adamkeasey655 Před 2 měsíci

    The short answer is being productive.

  • @Kane0123
    @Kane0123 Před 4 měsíci

    Lovin the intros

  • @deionjsm
    @deionjsm Před 3 měsíci

    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

  • @Rhyfelwr_Cymreig
    @Rhyfelwr_Cymreig Před 2 měsíci +3

    lol

  • @lambmaster
    @lambmaster Před 2 měsíci +1

    Accept it, ladies. Embrace it. Embrace your programmers.

  • @PixelKnight93
    @PixelKnight93 Před 3 měsíci

    that's true we don't got time for fooling around lol

  • @stephendelacruzone
    @stephendelacruzone Před měsícem

    Bless coder heart. 😅

  • @zark169
    @zark169 Před 2 měsíci

    That is an accurate response. If your man is spending his free time coding, he's not the type to cheat.

  • @fr89k
    @fr89k Před měsícem +1

    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.

    • @joelstienlet1641
      @joelstienlet1641 Před 20 dny

      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).

    • @fr89k
      @fr89k Před 20 dny +2

      @@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.

  • @half-duckprince3995
    @half-duckprince3995 Před 4 měsíci +9

    Amazing intros, keep it up pls

    • @Margen67
      @Margen67 Před 4 měsíci +1

      Ducks need HUGS

  • @russianvideovlogguy
    @russianvideovlogguy Před 3 měsíci +2

    "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"

    • @Rob-rg6kr
      @Rob-rg6kr Před 3 měsíci +2

      Yea normal people talk like him, don't be a pretentious antisocial programmer stereotype..

  • @LukeSolo-kk2qj
    @LukeSolo-kk2qj Před 24 dny

    Could you do a vid on ASLR / maybe bypassing it please? 🙏

  • @georgegeorge899
    @georgegeorge899 Před 3 měsíci

    ... Because we are busy with serious stuff !
    🤣🤣🤣

  • @gormenfreeman499
    @gormenfreeman499 Před 3 měsíci

    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.

  • @user-ew2zo7pg2e
    @user-ew2zo7pg2e Před 3 měsíci

    No regreat to click this.love it

  • @jkon61
    @jkon61 Před 14 dny

    ah yess the RAM editor

  • @OverAndOverAndOver
    @OverAndOverAndOver Před 3 měsíci

    This is so fuckin true

  • @Echo024
    @Echo024 Před 2 měsíci

    Omg this is perfect

  • @Ghostdawg176
    @Ghostdawg176 Před měsícem

    And when she asks me what I’m coding the answer always leaves her in a state of 👁️👄👁️

  • @thatmatvalencia
    @thatmatvalencia Před 3 měsíci

    effs are memory addresses. Memory safe c++. I learned something today.