negative memcpy
Denys Vlasenko
vda.linux at googlemail.com
Wed Aug 10 03:06:51 UTC 2011
On Wed, Aug 10, 2011 at 2:32 AM, manish kumar <deliver2manish at gmail.com> wrote:
> 00400570 <memcpy at plt>:
> 400570: 3c0f0041 lui t7,0x41
> 400574: 8df90830 lw t9,2096(t7)
> 400578: 03200008 jr t9
> 40057c: 25f80830 addiu t8,t7,2096
> 00400700 <main>:
> 400700: 27bdffc0 addiu sp,sp,-64
> 400704: afbf003c sw ra,60(sp)
> 400708: afbe0038 sw s8,56(sp)
> 40070c: 03a0f021 move s8,sp
> 400710: 2402ffff li v0,-1
> 400714: afc20018 sw v0,24(s8)
> 400718: afc0001c sw zero,28(s8)
> 40071c: afc00020 sw zero,32(s8)
> 400720: a7c00024 sh zero,36(s8)
> 400724: afc00028 sw zero,40(s8)
> 400728: afc0002c sw zero,44(s8)
> 40072c: a7c00030 sh zero,48(s8)
> 400730: 27c30028 addiu v1,s8,40
> 400734: 27c2001c addiu v0,s8,28
> 400738: 00602021 move a0,v1
> 40073c: 00402821 move a1,v0
> 400740: 8fc60018 lw a2,24(s8)
> 400744: 0c10015c jal 400570 <memcpy at plt>
> 400748: 00000000 nop
> 40074c: 24020001 li v0,1
> 400750: 03c0e821 move sp,s8
> 400754: 8fbf003c lw ra,60(sp)
> 400758: 8fbe0038 lw s8,56(sp)
> 40075c: 27bd0040 addiu sp,sp,64
> 400760: 03e00008 jr ra
> 400764: 00000000 nop
This fragment does not show memcpy body per se: we see only call to it
through dynamic linker. (Possibly fishy) assembly in memcpy body is
not shown.
Try disassembling a static binary.
--
vda
More information about the uClibc
mailing list