diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-02-09 16:09:51 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-02-09 16:09:51 -0300 |
commit | 7dd416491e080456fc7742d884c520526509413e (patch) | |
tree | 93e2bbad87c473eb83eb778e158cb3b27dff1e6a | |
parent | e99156816d5033ca9421c80f55c5c8e7fcd5082b (diff) | |
download | glibc-7dd416491e080456fc7742d884c520526509413e.tar.gz glibc-7dd416491e080456fc7742d884c520526509413e.tar.xz glibc-7dd416491e080456fc7742d884c520526509413e.zip |
linux: Fix __sem_check_add_mapping search_sem
Similar to __sem_check_add_mapping fix, take in consideration the trailling NULL. Checked x86_64-linux-gnu.
-rw-r--r-- | sysdeps/pthread/sem_routines.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/pthread/sem_routines.c b/sysdeps/pthread/sem_routines.c index c2c8b54cd0..34e6410729 100644 --- a/sysdeps/pthread/sem_routines.c +++ b/sysdeps/pthread/sem_routines.c @@ -37,7 +37,7 @@ struct search_sem ino_t ino; int refcnt; sem_t *sem; - char name[NAME_MAX]; + char name[NAME_MAX + 1]; }; /* Comparison function for search of existing mapping. */ |