PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] tests
Date: Wednesday, 28 Oct 2020, 17:34:23


    > Message Posted By: Unknown
    >
    > In the test cases that measure number of bytes allocated on stack and
    > heap, why does the number of bytes on the stack change for encode and
    > decode when running the program multiple times?

This is an artifact of how Hwk4/Tests/maxStack measures
stack usage and how Linux moves the stack around to
prevent certain buffer overrun exploits.  Send me mail
if you want to know more.

--Stan-
PREV INDEX NEXT