
{"id":2345,"date":"2010-08-06T18:48:31","date_gmt":"2010-08-06T13:18:31","guid":{"rendered":"http:\/\/www.jeffrin.in\/?p=2345"},"modified":"2010-08-06T18:48:31","modified_gmt":"2010-08-06T13:18:31","slug":"pop-an-address-from-the-stack","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2010\/08\/06\/pop-an-address-from-the-stack\/","title":{"rendered":"pop an address from the stack.."},"content":{"rendered":"<h4> GDB shows retq instruction<\/h4>\n<pre>\n(gdb) disassemble\nDump of assembler code for function __read_nocancel:\n   0x00007fbd743e0e89 :\tmov    $0x0,%eax\n   0x00007fbd743e0e8e :\tsyscall\n=&gt; 0x00007fbd743e0e90 :\tcmp    $0xfffffffffffff001,%rax\n   0x00007fbd743e0e96 :\tjae    0x7fbd743e0ec9 \n   0x00007fbd743e0e98 :\tretq\nEnd of assembler dump.\n(gdb)\n<\/pre>\n<p><\/p>\n<h4> Process Involved <\/h4>\n<pre>\nGPL Ghostscript 8.71.\nPostScript and PDF language interpreter and previewer.\n<h4> A Screen Shot <\/h4>\nGPL Ghostscript 8.71 (2010-02-10)\nCopyright (C) 2010 Artifex Software, Inc.  All rights reserved.\nThis software comes with NO WARRANTY: see the file PUBLIC for details.\nWarning: the map file cidfmap was not found.\nGS&gt;\n<\/pre>\n<p><\/p>\n<h4> Explanation <\/h4>\n<pre>\nretq = pop an address from the stack and go to that address.\nit is an AMD64 instruction.\n\n\nsource : people.freebsd.org\/~lstewart\/references\/amd64.pdf\nsource : http:\/\/www.powerbasic.com\/support\/help\/pbwin\/html\/\n          Opcodes_and_Mnemonics.htm\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>GDB shows retq instruction (gdb) disassemble Dump of assembler code for function __read_nocancel: 0x00007fbd743e0e89 : mov $0x0,%eax 0x00007fbd743e0e8e : syscall =&gt; 0x00007fbd743e0e90 : cmp $0xfffffffffffff001,%rax 0x00007fbd743e0e96 : jae 0x7fbd743e0ec9 0x00007fbd743e0e98 : retq End of assembler dump. (gdb) Process Involved GPL Ghostscript 8.71. PostScript and PDF language interpreter and previewer. A Screen Shot GPL Ghostscript 8.71 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2010\/08\/06\/pop-an-address-from-the-stack\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;pop an address from the stack..&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":-1,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[391,1278,1375,1376,1480],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/2345"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=2345"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/2345\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=2345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=2345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=2345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}