Changeset 375e501 in mainline


Ignore:
Timestamp:
2012-06-13T21:31:34Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3f57fb7
Parents:
2902e1bb
Message:

Fix async_forget(). The reply to a forgotten message was being written, but the destination buffer could have been already freed, causing memory corruption.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/async.c

    r2902e1bb r375e501  
    13881388
    13891389        futex_down(&async_futex);
    1390         if (msg->done)
     1390        if (msg->done) {
    13911391                amsg_destroy(msg);
    1392         else
     1392        } else {
     1393                msg->dataptr = NULL;
    13931394                msg->forget = true;
     1395        }
    13941396        futex_up(&async_futex);
    13951397}
Note: See TracChangeset for help on using the changeset viewer.