tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: semctl(2) SETVAL/SETALL does not validate the semaphore value



Nicolas Joly <njoly%pasteur.fr@localhost> wrote:
> +                     if ((unsigned int)semval > seminfo.semvmx) {
> +                             error = ERANGE;
> +                             break;
> +                     semaptr->_sem_base[i].semval = semval;
> +                     }

I think you wanted bracket after the "break".
In general looks fine.

-- 
Best regards,
Mindaugas
www.NetBSD.org


Home | Main Index | Thread Index | Old Index