Lines Matching refs:memory
233 // string, create some strings that end near unreadable memory.
235 char *memory = (char*)memalign(pagesize, 2 * pagesize);
236 if (memory == NULL) {
237 perror("Unable to allocate memory.\n");
242 if (mprotect(&memory[pagesize], pagesize, PROT_NONE) != 0) {
252 perror("Unable to allocate memory.\n");
257 string = &memory[pagesize-i-1];
309 perror("Unable to allocate memory.\n");
403 perror("Unable to allocate memory.\n");
441 // string, create strings that end near unreadable memory.
443 char *memory = (char*)memalign(pagesize, 2 * pagesize);
444 if (memory == NULL) {
445 perror("Unable to allocate memory.\n");
450 if (mprotect(&memory[pagesize], pagesize, PROT_NONE) != 0) {
457 memory[i] = (char)(32 + (i % 96));
463 string = &memory[pagesize-j-1];
489 perror("Unable to allocate memory.\n");
494 perror("Unable to allocate memory.\n");
557 perror("Unable to allocate memory.\n");
562 perror("Unable to allocate memory.\n");
635 perror("Unable to allocate memory.\n");
775 perror("Unable to allocate memory.\n");