From 7dd416491e080456fc7742d884c520526509413e Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Tue, 9 Feb 2021 16:09:51 -0300 Subject: 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. --- sysdeps/pthread/sem_routines.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/pthread') diff --git a/sysdeps/pthread/sem_routines.c b/sysdeps/pthread/sem_routines.c index c2c8b54..34e6410 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. */ -- cgit v1.1