/*
This program will not segfault because we used dynamic memory allocation instead.
*/

#include <stdio.h>
#include <stdlib.h>

int main(void){
	int * image = NULL;
	image = malloc(sizeof(int) * 1000 * 1000 * 3);

	int i = 0;
	for (i = 0; i < 1000 * 1000 * 3; i++){
		*(image + i) = 255;
	}

	free(image);

	return 0;
}
