projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fc5fdb
)
enforce stack size min in pthread_attr_setstacksize
author
Rich Felker
<dalias@aerifal.cx>
Fri, 4 Mar 2011 05:59:14 +0000
(
00:59
-0500)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 4 Mar 2011 05:59:14 +0000
(
00:59
-0500)
src/thread/pthread_attr_setstacksize.c
patch
|
blob
|
history
diff --git
a/src/thread/pthread_attr_setstacksize.c
b/src/thread/pthread_attr_setstacksize.c
index df16b980886e54c2581c4004e811fcc45c17df19..e4de5208eeba54935a881b10b3366ad8df88392d 100644
(file)
--- a/
src/thread/pthread_attr_setstacksize.c
+++ b/
src/thread/pthread_attr_setstacksize.c
@@
-2,7
+2,7
@@
int pthread_attr_setstacksize(pthread_attr_t *a, size_t size)
{
- if (size-P
AGE_SIZE
> SIZE_MAX/4) return EINVAL;
+ if (size-P
THREAD_STACK_MIN
> SIZE_MAX/4) return EINVAL;
a->_a_stacksize = size - DEFAULT_STACK_SIZE;
return 0;
}