Opened 8 years ago

#362 new defect

Incorrect __KLIBC_ARG_MASK usage in __spawnve

Reported by: dmik Owned by:
Priority: normal Milestone: new
Component: libc Version: 0.6.6
Severity: normal Keywords:
Cc:

Description

This mask is ANDed as is while I believe it should be ANDed inverted. The caused the following assertion in log enabled builds:

00508aa7 01 00 001b Asrt: Assertion Failed!!!
00508aa7 01 00 001b Asrt: Function: parse_args
00508aa7 01 00 001b Asrt: File:     D:/Coding/libc/libc-0.6/src/emx/src/lib/sys/__init.c
00508aa7 01 00 001b Asrt: Line:     227
00508aa7 01 00 001b Asrt: Expr:     (unsigned)*src & __KLIBC_ARG_NONZERO

The fix is attached.

Attachments (1)

spawn_assert.diff (1.3 KB ) - added by dmik 8 years ago.

Download all attachments as: .zip

Change History (1)

by dmik, 8 years ago

Attachment: spawn_assert.diff added
Note: See TracTickets for help on using tickets.