NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/46985: sem_post does not validate arguments
The following reply was made to PR lib/46985; it has been noted by GNATS.
From: Aran Clauson <aran%100acres.us@localhost>
To: gnats-bugs%NetBSD.org@localhost, gnats-admin%netbsd.org@localhost
Cc:
Subject: Re: lib/46985: sem_post does not validate arguments
Date: Wed, 19 Sep 2012 12:08:20 -0700 (PDT)
The following patch fixes the problem.
Index: lib/libpthread/sem.c
===================================================================
RCS file: /cvsroot/src/lib/libpthread/sem.c,v
retrieving revision 1.24
diff -u -r1.24 sem.c
--- lib/libpthread/sem.c 10 Mar 2012 18:01:10 -0000 1.24
+++ lib/libpthread/sem.c 19 Sep 2012 19:07:55 -0000
@@ -71,6 +71,7 @@
#include <stdarg.h>
#include "pthread.h"
+#include "pthread_int.h"
struct _sem_st {
unsigned int ksem_magic;
Home |
Main Index |
Thread Index |
Old Index