Search:

Type: Posts; User: Renski

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,796

    Where is the ``buffer overflow''? You don't read...

    Where is the ``buffer overflow''? You don't read too much data using recv( ), buff will dynamically be extended, and the last loop doesn't break anything either (at least not the code that can be...
  2. Replies
    2
    Views
    1,796

    int num = recv (s, cstr, 200, 0); ...

    int num = recv (s, cstr, 200, 0);

    for(int i = 0; i < num; i++) {
    buff = buff + cstr[i];
    }


    if num was 0 or 1, the next for statement wouldnt run. + the overflow only...
  3. Replies
    2
    Views
    1,796

    buffer overflow problem

    Im having problems with a server im writting, its possible to cause a buffer overflow.

    thanks you for any help you can give.

    buff is a std string



    connection::ReadData() {
    ...
Results 1 to 3 of 3