SmartAudio/package/avs/libsensory/files/wrapper/chk/getgroups_chk.c

8 lines
186 B
C
Executable File

#include <unistd.h>
#include "fortify.h"
int __getgroups_chk(int count, gid_t *list, size_t listlen)
{
if(count*sizeof(gid_t) > listlen) __chk_fail();
return getgroups(count, list);
}