Thread: Need help finding an unintended overwrite

  1. #1
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    1,733

    Need help finding an unintended overwrite

    I've confirmed that 'lua_proc_handle_prep_scan' (called by 'lua_proc_handle_dump' and 'lua_proc_handle_bytescan') indeed receives the correct range but sometime between there and attempting to start dumping the memory (which somehow ends abrubtly) the values are overwritten to 0 and no percentage of the dump/scan can be calculated

    Full project is here:
    GitHub - awsdert/gasp at c8d0255e3ed3cbe11a734d35b848441d4cfc6602
    The mentioned functions and the related calls they make are mainly in lua_process.c and proc.c

    I gotta start preparing for work so any further replies I make until I get home tonight will be on my phone.

  2. #2
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    1,733
    Managed to fix it, mishandled the return values of 2 different functions which prevented the scan from being done in the 1st place, so not overwritten, just never filled to begin with

    Edit: Forgot to link the updated code
    GitHub - awsdert/gasp at a28900925aa487fd4d2d5c01a89f2794164a1407

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Overwrite SRET by overflow
    By bitsPlease in forum C Programming
    Replies: 1
    Last Post: 11-27-2019, 08:37 PM
  2. Don't overwrite this space!!!!
    By mesmer in forum C Programming
    Replies: 4
    Last Post: 10-27-2008, 01:21 PM
  3. OT:force overwrite with cp
    By rotis23 in forum Linux Programming
    Replies: 12
    Last Post: 07-06-2004, 11:11 AM
  4. how to overwrite the text in *.txt
    By SuperNewbie in forum C# Programming
    Replies: 4
    Last Post: 11-10-2003, 09:01 AM
  5. Add not overwrite to a file
    By Bones in forum C++ Programming
    Replies: 7
    Last Post: 10-03-2003, 09:56 AM

Tags for this Thread