BUF_SIZE
bptr = malloc (BUF_SIZE);
if (fgets(bptr, BUF_SIZE, f) == NULL)
if (strlen(bptr) >= BUF_SIZE - 1) {
for (offset = 0; offset > -BUF_SIZE; offset--) {
char *mbuf = OPENSSL_malloc(BUF_SIZE);
read_len = BIO_gets(fbio, mbuf, BUF_SIZE);
read_len = BIO_gets(fbio, mbuf, BUF_SIZE);
uint8_t buf[BUF_SIZE];
uint8_t *buf = malloc(BUF_SIZE);
size_t size = read(0, buf, BUF_SIZE);
static unsigned char inp[BUF_SIZE] = { 0 };
unsigned char out[BUF_SIZE], ref[BUF_SIZE];
unsigned char buf[BUF_SIZE];
char path[BUF_SIZE];
memset(buf, 0, BUF_SIZE);
snprintf(path, BUF_SIZE, "%s/%s", fileprefix, reqname);
if (!BIO_read_ex(readbio, buf, BUF_SIZE, &bytes_read)) {
char buf[BUF_SIZE];
pfr_next_token(char buf[BUF_SIZE], FILE *fp)
if (i < BUF_SIZE)
if (i >= BUF_SIZE) {
static int pfr_next_token(char buf[BUF_SIZE], FILE *);
char buf[BUF_SIZE];
len += snprintf(buf + len, BUF_SIZE - len,
len += snprintf(buf + len, BUF_SIZE - len,
len += snprintf(buf + len, BUF_SIZE - len,
len += snprintf(buf + len, BUF_SIZE - len,
len += snprintf(buf + len, BUF_SIZE - len,
len += snprintf(buf + len, BUF_SIZE - len,
len += snprintf(buf + len, BUF_SIZE - len,
len += snprintf(buf + len, BUF_SIZE - len,
len += snprintf(buf + len, BUF_SIZE - len,
len += snprintf(buf + len, BUF_SIZE - len,
len += snprintf(buf + len, BUF_SIZE - len,
len += snprintf(buf + len, BUF_SIZE - len, "\n");
if (len >= BUF_SIZE)
char *addr, buf[BUF_SIZE];
ATF_REQUIRE(ftruncate(fd, BUF_SIZE) == 0);
ATF_REQUIRE(write(fd, buf, BUF_SIZE) == BUF_SIZE);
addr = mmap(0, BUF_SIZE, (PROT_READ | PROT_WRITE), MAP_PRIVATE, fd, 0);
ATF_REQUIRE(munmap(addr, BUF_SIZE) == 0);
ATF_REQUIRE(write(fd, buf, BUF_SIZE) == -1);
ATF_REQUIRE(mmap(0, BUF_SIZE, (PROT_READ | PROT_WRITE), MAP_SHARED,
ATF_REQUIRE(ftruncate(fd, BUF_SIZE) == 0);
addr = mmap(0, BUF_SIZE, (PROT_READ | PROT_WRITE), MAP_SHARED, fd, 0);
paddr = mmap(0, BUF_SIZE, (PROT_READ | PROT_WRITE), MAP_PRIVATE, fd, 0);
raddr = mmap(0, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0);
ATF_REQUIRE(munmap(addr, BUF_SIZE) == 0);
ATF_REQUIRE(munmap(raddr, BUF_SIZE) == 0);
ATF_REQUIRE(munmap(paddr, BUF_SIZE) == 0);
ATF_REQUIRE(mmap(0, BUF_SIZE, (PROT_READ | PROT_WRITE), MAP_SHARED,
paddr = mmap(0, BUF_SIZE, (PROT_READ | PROT_WRITE), MAP_PRIVATE, fd, 0);
raddr = mmap(0, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0);
ATF_REQUIRE(munmap(raddr, BUF_SIZE) == 0);
ATF_REQUIRE(munmap(paddr, BUF_SIZE) == 0);
ATF_REQUIRE(mmap(0, BUF_SIZE, (PROT_READ | PROT_WRITE), MAP_SHARED,
u_char buf[BUF_SIZE];
char buf[BUF_SIZE];
char buf[BUF_SIZE];