Results 1 to 10 of 22

Thread: libcod on Arch Linux

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by kung foo man View Post
    Can you try to add many normal printf's to this function in https://github.com/kungfooman/libcod...master/gsc.cpp ?


    PHP Code:
    int cdecl_injected_closer()
    {
        
    int function;
        
    int playerid
    printf by printf you will get nearer to the buggy function.
    It crashes here:
    PHP Code:
    printf("scriptengine> test b3\n");
        
        
        if (!
    stackGetParamInt(0, &function))
        {
            
    printf("scriptengine> ERROR: closer(): param \"function\"[0] has to be an integer!\n");
            return 
    0;
        }

        
    printf("scriptengine> test b4\n"); 
    It only shows 'scriptengine> test b3' and not the other 2 messages. (commenting the printf ...ERROR: closer().. out doesn't show the 'test b4' message.)
    Last edited by Mitch; 26th September 2013 at 21:09.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •