projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: sessiond: ODR violation results in memory corruption
[lttng-tools.git]
/
src
/
common
/
compat
/
pthread.hpp
diff --git
a/src/common/compat/pthread.hpp
b/src/common/compat/pthread.hpp
index 209cd275e330444236e432a63d0938f0fa813c4c..7883cd1ba303c5ecbcb88c5e842af6a3d7e0a61f 100644
(file)
--- a/
src/common/compat/pthread.hpp
+++ b/
src/common/compat/pthread.hpp
@@
-60,7
+60,7
@@
static inline
int lttng_pthread_setname_np(const char *name)
{
/* Replicate pthread_setname_np's behavior. */
int lttng_pthread_setname_np(const char *name)
{
/* Replicate pthread_setname_np's behavior. */
- if (strnlen(name, LTTNG_
UST_ABI_PROCNAME_LEN) >= LTTNG_UST_ABI_PROCNAME_
LEN) {
+ if (strnlen(name, LTTNG_
PTHREAD_NAMELEN) >= LTTNG_PTHREAD_NAME
LEN) {
return ERANGE;
}
return prctl(PR_SET_NAME, name, 0, 0, 0);
return ERANGE;
}
return prctl(PR_SET_NAME, name, 0, 0, 0);
This page took
0.02584 seconds
and
4
git commands to generate.