[SOLVED] CS /* Tries to mmap an invalid fd,

$25

File Name: CS_/*_Tries_to_mmap_an_invalid_fd,.zip
File Size: 320.28 KB

5/5 - (1 vote)

/* Tries to mmap an invalid fd,
which must either fail silently or terminate the process with
exit code -1. */

#include
#include tests/lib.h
#include tests/main.h

void
test_main (void)
{
CHECK (mmap (0x5678, (void *) 0x10000000) == MAP_FAILED,
try to mmap invalid fd);
}

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS /* Tries to mmap an invalid fd,
$25