mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-06 01:45:55 +00:00
Merge remote-tracking branch 'origin/miami' into lcs
* origin/miami: Fix buffer overflow on re3_sem_open/close
This commit is contained in:
commit
d37dc246eb
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue