[PATCH 2/2] Change type of the format specifier from "%lu" to "%d" for IPC ID

2016-09-07 Thread Eugene Syromyatnikov
* ipc_msgctl.c (SYS_FUNC(msgctl)): Convert format specifier of the first argument from "%lu" to "%d", cast argument to int. * ipc_sem.c (SYS_FUNC(semop)): Likewise. (SYS_FUNC(semtimedop)): Likewise. (SYS_FUNC(semget)): Likewise. * ipc_shm.c (SYS_FUNC(shmat)): Likewise. * ipc_shmctl.c (SYS_FUN

[PATCH 1/2] tests: Additional IPC checks

2016-09-07 Thread Eugene Syromyatnikov
* tests/ipc_msg.c: Additional msgget (parameter format), msgctl (parameter format, decoding of struct msqid_ds in IPC_SET/IPC_STAT commands) checks. * tests/ipc_sem.c: Additional semget, semctl checks. * tests/ipc_shm.c: Additional shmctl checks. * tests/semop.c: Additional semop checks. Added

[PATCH 0/2] Additional checks for IPC tests

2016-09-07 Thread Eugene Syromyatnikov
Hello. I've noticed that IPC tests do not check first parameter (IPC ID) enough which allowed incorrect format specifier usage. These patches augment tests with regard to aforementioned issue and correct illicit behaviour. Eugene Syromyatnikov (2): tests: Additional IPC checks Change type of