#include <stdlib.h>
#include <stdio.h>
int main() {
// ORIGINAL:
// char **env, *var;
// env = ngx_set_environment(cycle, &n);
char **env
= (char**) malloc(sizeof(char*));
// ORIGINAL:
// /* allocate the spare 300 bytes for the new binary process title */
//
// env[n++] = "SPARE=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
// "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
// "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
// "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
// "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
env[0] = "SPARE=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
// OooPS!
env[0][0] = 'a';
return EXIT_SUCCESS;
}
I2luY2x1ZGUgPHN0ZGxpYi5oPgojaW5jbHVkZSA8c3RkaW8uaD4KCmludCBtYWluKCkgewogICAgLy8gT1JJR0lOQUw6CiAgICAvLyBjaGFyICAgICAgICAgICAgICoqZW52LCAqdmFyOyAgICAKICAgIC8vIGVudiA9IG5neF9zZXRfZW52aXJvbm1lbnQoY3ljbGUsICZuKTsKICAgIGNoYXIgKiplbnYgPSAoY2hhcioqKSBt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