Call Stack 1/2

Поделиться
HTML-код
  • Опубликовано: 4 фев 2025

Комментарии • 33

  • @dice19951
    @dice19951 4 года назад +11

    This video is better than my entire semester of programming language theory

  • @snacc1543
    @snacc1543 4 года назад

    creators on youtube and github like you seem to be better honestly at teaching these concepts imo than textbook publishers and many university lectures. the visuals and analogies and everytging are spectacular! thank you for doing tje people's work. subscribed.

  • @adityauniyal4
    @adityauniyal4 5 лет назад +2

    This is exactly what I was looking for. Really wonderful and clear explanation. Thanks alot. 🙌👍

  • @fktudiablo9579
    @fktudiablo9579 4 года назад +1

    Clearly explained, without overflowing my brain.

  • @MrKret87
    @MrKret87 5 лет назад +15

    I'm interested in how this type of attack is executed, how it's structured and what I can do to prevent getting attacked in this way and also what modern compilers and operation systems are doing to avoid the situation that an aware programmer gets himself into a trouble because somebody exploited this mechanism of stack.

  • @kevinjaypatel
    @kevinjaypatel 4 года назад +2

    Thank you so much, this was a great video! Great explanation, and great content overall! Please make a video on stack overflow!

  • @lucasguilherme3389
    @lucasguilherme3389 4 года назад +1

    Dude, you rock, better explanation ever

  • @jareqpl
    @jareqpl 5 лет назад +1

    Keep it going man. Very good guide!

  • @summerholiday1448
    @summerholiday1448 2 года назад

    Great content- i have one question: are all stack frames similar in size? For example if main() calls foo() and foo call add() - are the stack frames for main, foo, add are exact in size?

    • @SmokCode
      @SmokCode  2 года назад

      Thanks. Actually, no. Stack frame size varies because the arguments to the function are stored there, local (automatic) variables and the return value.

    • @summerholiday1448
      @summerholiday1448 2 года назад

      @@SmokCode Ok i see, how about the maximum size limit for each stack frame , are they the same?

    • @SmokCode
      @SmokCode  2 года назад

      If an implementation enforces some frame size limit, it should presumably be the same, but I can't see why there would be a per-frame limit at all. Stack frames aren't really allocated on creation - they're reusing a space in a constant buffer (that needs to be resized by the OS if it runs out - how, is platform specific). Oversimplifying: if your total stack memory is 100MB, one frame can eat it whole, and there won't be any more space for next frame. If OS decides that it's not allocating more - you'll get a stack overflow.

  • @t3hKazy
    @t3hKazy 5 лет назад +2

    Yeah! Do explain how those attacks work. I'm finishing my last project for an incredibly intense coding bootcamp. Do you have any textbooks you'd recommend?

  • @magicznyzdzicho3491
    @magicznyzdzicho3491 5 лет назад

    Great reminder that doesn't take much time. Well done. But I have one question.
    15:10 How exactly do we know the size of the frame? I mean, there is no problem to get the size of local variables, but how do we know when argument list actually ends?

    • @SmokCode
      @SmokCode  5 лет назад

      Thanks for this comment! I was looking into the answer for your question and I discovered that there is a mistake with the explanation of ESP behaviour. I'll prepare a corrected video, and give you a proper response.

    • @magicznyzdzicho3491
      @magicznyzdzicho3491 5 лет назад +1

      Thanks!

    • @SmokCode
      @SmokCode  5 лет назад

      Here it is ruclips.net/video/Gfmq2vGhWbw/видео.html !

  • @sydefx5451
    @sydefx5451 5 лет назад +1

    I just love your channel wish you post more often :D
    anyway i have a question i started learning java finished courses on OOP and Data Structure and algorithms now i started with another one also with Data Structure and algorithms but advance
    but sometimes i feel like im stuck trying to solve really basic problems than moving to advanced one nut still feeling that isn't enough did you ever get that feeling
    thanks :)

    • @SmokCode
      @SmokCode  5 лет назад

      New video is coming tomorrow! I'm low on my time budget, but it'll get better.
      Yes, I do get that feeling - it never goes away. Pro devs just get better dealing with it. Keep grinding, you will find the answers!

  • @kamilkowalczuk3737
    @kamilkowalczuk3737 5 лет назад +1

    W czym piszesz na codzień?

    • @SmokCode
      @SmokCode  5 лет назад +1

      Dzisiaj Java+JS, wcześniej C++, C#, PHP

  • @patrickjoel8779
    @patrickjoel8779 5 лет назад +1

    Stack is mostly use of subroutines call .........it's easy guys get the explanation

  • @atlaskaiser693
    @atlaskaiser693 5 лет назад +1

    1:37 aka return 0

  • @patrickjoel8779
    @patrickjoel8779 5 лет назад

    Stack is beign controlled by LIFO LOGIC

  • @ajjarindahouse
    @ajjarindahouse 3 года назад

    "Callstacks are basically stacks of those calls"

  • @cezarygrzanka4229
    @cezarygrzanka4229 5 лет назад +2

    Good way to learn English :P

  • @ezraakran7158
    @ezraakran7158 3 года назад

    lad

  • @mateusz-czajkowski
    @mateusz-czajkowski 4 года назад

    brzmiszjakpolak.jpg

  • @MrKret87
    @MrKret87 5 лет назад +2

    Nie gadaj tyle, tylko układaj te klocki bo nigdy w Jengę nie zagramy...

  • @gonska9188
    @gonska9188 2 года назад

    to jest lepsze wyjaśnienie niż live overflow dzienki