Search:

Type: Posts; User: Hoang Bao Ngo

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    4,089

    I understand the error now thank you, it expected...

    I understand the error now thank you, it expected a pointer but I gave it a char, or what was in that address.

    I want to set the next place to a null so I use:
    *(boot_buffer+bytes_used++) =...
  2. Replies
    6
    Views
    4,089

    found out that calloc is better than malloc,...

    found out that calloc is better than malloc, since I gotta write and pad where there are necessary, so instead of remember where to pad, just pad all at the beginning and then start overwriting data....
  3. Replies
    6
    Views
    4,089

    Yeah seems like I have to do that. *(buffer +...

    Yeah seems like I have to do that. *(buffer + bytes_used), here I come.

    Thanks, gonna try this tomorrow
  4. Replies
    6
    Views
    4,089

    Buffer Pointer, fread, memset

    Need some reassurance



    Not wondering about syntax or semantics btw.

    Lets say I open a file and reading from it.

    /*reading ten char from file and store it in buffer*/
    char * buffer =...
  5. Replies
    2
    Views
    2,628

    I found the solution. At first I thought that...

    I found the solution.

    At first I thought that program headers are laying at different offset, not consecutive, but just found out that it was continuosly.
    And by that we can just add the size of...
  6. Replies
    2
    Views
    2,628

    ELF, Program Header Table, entries

    Hithe only problem I have is to know how to get access to the next entry in program header table

    ex:



    /*read from a file with elf files inside and saved it in buffer*/
    Elf32_Phdr *list;...
  7. Replies
    2
    Views
    2,557

    Your're right, struct EDGE has only an int and...

    Your're right, struct EDGE has only an int and NODE to have two integers, an ID number and cost, so NODE was twice the size of EDGE, no wonder I got invalid write size by 4 byte (integer -> 4 byte)....
  8. Replies
    2
    Views
    2,557

    Debugging help, pointer forwarding

    There's the code under, but I'm getting an invalid read size of 4, and it seems because I forwarded the pointer a little far ahead... I think.
    It's just a little part of my network code, but it's...
Results 1 to 8 of 9