Lab 3 - IDA
Lab 3 - IDA
Lab 3 - IDA
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
A non-terminated string<br />
• In this program, the beginning of the<br />
string is valid<br />
• Just checking the pointer is not enough<br />
#define PGS 4096 /* page size */<br />
#define PMASK 0xfffff000<br />
static char inbss;<br />
int main (int argc, char ** argv)<br />
{<br />
char * bss_page = (char*) ((uint)(&inbss) & PMASK);<br />
memset (bss_page, 'a', PGS );<br />
create (bss_page+PGS5, 1024);<br />
}<br />
exit(0);<br />
30