КОМЕНТАРІ •

  • @ShaneLeeCoding
    @ShaneLeeCoding 5 років тому +5

    Thanks for making this so clear and giving the example. I'd managed to understand the basic concept before I saw your video, but I'd never really seen any examples. Thanks Engineer Man.

  • @gregoryfenn1462
    @gregoryfenn1462 5 років тому +4

    Great little explanation of buffer overflows and a little insight into the stack/heap distinction too, packed neatly into a short 5 min vid! Thanks :)

  • @Djzaamir
    @Djzaamir 5 років тому +5

    One of the best on BufferOverFlow

  • @1810Chopiano
    @1810Chopiano 3 роки тому

    Really fantastic. Thanks so much. Maybe the best and most succinct explanation I've heard yet.

  • @balkon646
    @balkon646 7 років тому +3

    Thank you for this video. I recently fount out about your channel in Reddit and it's really awesome. Most of the tutorials are stuck in beginner level. Your content is going great, keep up the good work.
    And, I am trying to learn socket programming in C, if you were to do socket programming that would be great :)

    • @EngineerMan
      @EngineerMan 7 років тому +4

      Thanks for the kind words. I do need to do more advanced topics as I feel I'm neglecting that audience a little.
      I've been working on a small toy web server as a personal side project here:
      github.com/ebrian/bserve
      There's a lot of fundamentals for sockets. I'll certainly do an Engineer Man video on the subject, too.
      Enjoy!

    • @balkon646
      @balkon646 7 років тому

      Thanks for replying this fast and linking your project. I will look into it :)
      For advanced topics I would want to see some memory allocating and memory padding on structs. I saw this topic in "Deep C" slideshow on slideshare, but I couldn't understand it really. And there are a lot of 32-bit, 64-bit arcitechture differences on memory allocating so it would be a good topic too, I think.

    • @walrusboy91
      @walrusboy91 7 років тому +1

      why don't you fucking google your questions instead of begging for free content.

    • @EngineerMan
      @EngineerMan 7 років тому +3

      Hello friend, he's not begging. I make mention at the end of all my videos to make requests if people have them. No worries :)

    • @amlamarra
      @amlamarra 7 років тому +1

      Because Engineer Man can provide a better tutorial than 99% of what's out there on the Internet.

  • @alazawi03
    @alazawi03 5 місяців тому

    OMG! so great explanation, time saving, but i wish if you went into heap aswell! good job!

  • @user-ep3ye5bw8h
    @user-ep3ye5bw8h 7 років тому +1

    Nice videos have been watching most of them. Keep up the good content!

    • @EngineerMan
      @EngineerMan 7 років тому

      Glad you're enjoying them!

  • @happychuckprogramming6048
    @happychuckprogramming6048 5 років тому

    awesome work, Engineer Man. Keep it coming !!

  • @humane123
    @humane123 Рік тому

    Thanks for the simple explanation

  • @chrisnocker3437
    @chrisnocker3437 5 років тому +1

    Hey mate, I'm watching the C playlist and I think the first and second videos should be switched in order.
    Great content! Thanks.

    • @EngineerMan
      @EngineerMan 5 років тому +2

      I'll check it out. The C playlist is more of a way to just categorize everything. That one wasn't meant to be in any particular order. If it does appear to be in any order, that's purely by luck lol.

  • @jockillfull
    @jockillfull 5 років тому +2

    Hi! I really do like your work keep on!!
    I just had one question :
    Why the first buffer is modified in the second case? Because it his "behind" in term of placement in the memory it shouldn't change... O.o

  • @austin2994
    @austin2994 5 років тому

    Wanted to see the heap corruption example. Also a core dump analysis video in future

  • @Joker9586
    @Joker9586 7 років тому

    Thanks a lot for these videos, i'm currently into Linux programming and learning Posix standard. I'm enjoying these videos.
    I wish you could do more about Linux syscalls and tools like message queues, pipes, Fifos, signals and so on

    • @EngineerMan
      @EngineerMan 7 років тому +1

      My pleasure! The focus on this channel has narrowed down to C and Linux, so definitely expect to see videos covering subject matter related to those topics in the future!

    • @Joker9586
      @Joker9586 7 років тому +1

      Thanks, I don't see lots of good tutorials on this topic out there.

  • @orange.grapes
    @orange.grapes 3 роки тому

    This playlist is awesome. Q: is the void pointer cast on lines 26 and 26 of the video necessary? Malloc returns a void pointer

  • @BananaHammyForYou
    @BananaHammyForYou 6 років тому +1

    Cool video, totally don't know about any of this and it's really interesting. Can you do a video on how to diagnose memory corruption or maybe how to use debugging tools? The Devs at my company have made a bunch of fragile junk and can't seem to fix it and I want to try my hand at it. I'd say I'm probably a novice with no Assembly knowledge.

  • @nimaMotlagh-z8c
    @nimaMotlagh-z8c 5 місяців тому

    It was perfect
    Thank you so much

  • @aidanabregov1412
    @aidanabregov1412 Рік тому

    What’s the difference between stacks and heaps? Great video.

  • @starlwe
    @starlwe 4 роки тому

    I'm curious, what editor are you using in linux?

  • @raymondtan9112
    @raymondtan9112 5 років тому +1

    Can you create the video for Heap as well? I copied your code and play around with it and can't get to overflow condition in my 32 bit Ubuntu

  • @graham12345dd
    @graham12345dd Рік тому

    Excellent!

  • @phonxeno8831
    @phonxeno8831 2 роки тому

    I am trying this on sublime text, and using the code provided in your github. When I run this, I get illegal instruction 4 ( and I tried it with the no stack. any idea? Thanks!

  • @electrowizard2658
    @electrowizard2658 Рік тому

    simple and great !!

  • @ColinPittendrigh
    @ColinPittendrigh 3 роки тому

    What about manipulating heap overflow in order to actually execute spurious codes?

  • @BinaryAdventure
    @BinaryAdventure 4 роки тому

    It's not quite correct that running a few bytes past the end of the stack buffer, triggering the segfault, is actually coming from the OS. The default stack size is around 1MB and this overflow is running into memory which is still allocated to the process... It's just out of bounds of the buffer. The stack grows downward in memory address and this copy would overflow in the memory-upwards direction, which would definitely still be in the process' allocated stack space and not in the memory space of another process or OS.

    • @giridharprasath10
      @giridharprasath10 4 роки тому

      that is why it is called as corruption
      yeah canaries would be set to crash the program, but without canaries? it would overwrite stack metadata and code execution can happen

  • @pranavrao6370
    @pranavrao6370 4 роки тому

    Could you explain Stack and Heap specifically?

  • @taoyeahright
    @taoyeahright 4 роки тому

    why is authorized only 0x10+0xC or 28 bytes away instead of 32 bytes, signed integers for 32 bit should be 32 bytes no?

  • @savinodamato6090
    @savinodamato6090 4 роки тому

    i hope that will be helpfull for Nocera's exam

  • @erbkgupta8679
    @erbkgupta8679 5 років тому

    Graet!

  • @manolov4074
    @manolov4074 4 роки тому

    Hey Everyone ! I have a question .
    If the OS is not going to allow you to overwrite to other bytes ,other than the ones u are allowed to , why would this be a problem? We need to be carefull with our projects , but what is the problem if the OS is going to stop anything that will try to destroy it ?
    Thanks in advance

    • @EngineerMan
      @EngineerMan 4 роки тому

      The problem is that vulnerable programs could be used to do malicious things. Imagine if SSH was vulnerable to heap corruption allowing people to log in without credentials. While this doesn't harm the system, per se, it doesn't allow an unknown party to take control of a machine.

    • @manolov4074
      @manolov4074 4 роки тому

      @@EngineerMan Oooo Yes , Yes . Now i get the idea . Its not always about the system . Thank you a lot Engineering Man . I find your videos very usefull ! Having in mind the quick and powerfull replay is also a plus . U won a new subscriber :)
      Keep up the good work Engineering MAN !!!
      Greetings from Bulgaria , and thanks again !

  • @geoafrikana
    @geoafrikana Рік тому

    Succinct. Thanks so much.

  • @collinsd70
    @collinsd70 6 років тому

    Why does the compiler not detect this when compiling???

    • @studentcommenter5858
      @studentcommenter5858 6 років тому

      As he said, even though there was buffer overflow he was still accessing the space of the same program. Compiler is going to throw an error when he tries to access the memory space of some other program.

  • @aglimitless
    @aglimitless 4 роки тому

    Why some games in my phone closed due to stack corruption...

  • @clashwithtim74
    @clashwithtim74 4 роки тому

    600 likes

  • @ammarsyaf3035
    @ammarsyaf3035 6 років тому +1

    your room is so empty

    • @EngineerMan
      @EngineerMan 6 років тому

      It's technically my dining room, but I just assume use it as an office.