Changeset 7faabb7 in mainline for uspace/lib/libc/generic/thread.c


Ignore:
Timestamp:
2008-11-07T23:16:28Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
24345a5
Parents:
86e3d62
Message:

Fix sys_thread_create(): could fail when passed name was at end of mapping, could crash if provided name was not null-terminated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/thread.c

    r86e3d62 r7faabb7  
    109109        uarg->uspace_uarg = uarg;
    110110       
    111         rc = __SYSCALL3(SYS_THREAD_CREATE, (sysarg_t) uarg, (sysarg_t) name,
    112             (sysarg_t) tid);
     111        rc = __SYSCALL4(SYS_THREAD_CREATE, (sysarg_t) uarg, (sysarg_t) name,
     112            (sysarg_t) strlen(name), (sysarg_t) tid);
    113113       
    114114        if (rc) {
Note: See TracChangeset for help on using the changeset viewer.