804 static PyObject *
805 PyShmSemaphore_setuid(
806 PyShmSemObj *self,
807 PyObject *args)
808 {
809 long newuid, olduid;
810 semctl_arg arg;
811
812 if (!PyArg_ParseTuple(args, "l", &newuid))
when PyArg_ParseTuple() succeeds
taking False path
813 return NULL;
814 refresh_semaphore_status(self);
when considering range: -0x80000000 <= value <= -1
taking False path
815 olduid = (long)self->ds.sem_perm.uid;
816 self->ds.sem_perm.gid = (uid_t)newuid;
817 arg.buf = &(self->ds);
818 if (semctl(self->semid, 0, IPC_SET, arg) == -1) {
passing uninitialized data (arg) as argument 4 to function at src/extensions/shmmodule.c:818
found 1 similar trace(s) to this
819 self->ds.sem_perm.uid = (uid_t)olduid;
820 return PyShm_Err();
821 }
822 Py_INCREF(Py_None);
823 return Py_None;
824 }