Re: Hacking into lj_meta_tset

  • From: Emil Dotchevski <emil@xxxxxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 7 Aug 2013 11:11:24 -0700

On Wed, Aug 7, 2013 at 12:44 AM, Mike Pall <mike-1308@xxxxxxxxxx> wrote:
> Emil Dotchevski wrote:
>> On Tue, Aug 6, 2013 at 12:46 PM, Emil Dotchevski <emil@xxxxxxxxxxxxxxx> 
>> wrote:
> Insert this after the following .else:
>   movzx RA, PC_RA
>   add RA, BASE
>   mov ARG4, RA

I was going to say, I'm pretty sure I tried this, and sure enough with
the patch above I get a cTValue pointer that points to this:

val     0x175b9c43
u64     0x494c50fffffff415      unsigned __int64
n       1.2629539214381766e+045 double
gcr     {gcptr32=0xfffff415 }   GCRef
i       0xfffff415      int
it      0x494c50ff      unsigned int
fr      {func={...} tp={...} }  <unnamed-tag>
u32     {lo=0xfffff415 hi=0x494c50ff }  <unnamed-tag>

I think this doesn't look like a proper TValue but do correct me if
I'm wrong. It is supposed to be a number.

Thanks!
Emil

Other related posts: