Fix buffer overflow on re3_sem_open/close

This commit is contained in:
Adrian Graber 2021-02-16 18:12:21 +01:00 committed by GitHub
parent 1a64053da5
commit 19b39f49fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ re3_sem_close(sem_t* sem)
sem_t*
re3_sem_open(const char* format, ...)
{
char semName[20];
char semName[21];
va_list va;
va_start(va, format);
vsprintf(semName, format, va);
@ -71,7 +71,7 @@ re3_sem_close(sem_t* sem, const char* format, ...)
{
sem_close(sem);
char semName[20];
char semName[21];
va_list va;
va_start(va, format);
vsprintf(semName, format, va);