src/http/ngx_http.c:252: error: Buffer Overrun S2
  Offset: `ngx_http_core_module.ctx_index` Size: [0, +oo].

src/http/ngx_http.c:119:1: <Offset trace>
117. 
118. 
119. static char *
     ^
120. ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
121. {

src/http/ngx_http.c:119:1: Global `ngx_http_core_module.ctx_index`
117. 
118. 
119. static char *
     ^
120. ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
121. {

src/http/ngx_http.c:144:5: <Length trace>
142.     /* count the number of the http modules and set up their indices */
143. 
144.     ngx_http_max_module = 0;
         ^
145.     for (m = 0; ngx_modules[m]; m++) {
146.         if (ngx_modules[m]->type != NGX_HTTP_MODULE) {

src/http/ngx_http.c:144:5: Assignment
142.     /* count the number of the http modules and set up their indices */
143. 
144.     ngx_http_max_module = 0;
         ^
145.     for (m = 0; ngx_modules[m]; m++) {
146.         if (ngx_modules[m]->type != NGX_HTTP_MODULE) {

src/http/ngx_http.c:156:22: Call
154.     /* the http main_conf context, it is the same in the all http contexts */
155. 
156.     ctx->main_conf = ngx_pcalloc(cf->pool,
                          ^
157.                                  sizeof(void *) * ngx_http_max_module);
158.     if (ctx->main_conf == NULL) {

src/core/ngx_palloc.c:283:1: Parameter `size`
  281. 
  282. 
  283. void *
       ^
  284. ngx_pcalloc(ngx_pool_t *pool, size_t size)
  285. {

src/core/ngx_palloc.c:288:9: Call
  286.     void *p;
  287. 
  288.     p = ngx_palloc(pool, size);
               ^
  289.     if (p) {
  290.         ngx_memzero(p, size);

src/core/ngx_palloc.c:125:13: Assignment
    123. 
    124.         do {
    125.             m = ngx_align_ptr(p->d.last, NGX_ALIGNMENT);
                     ^
    126. 
    127.             if ((size_t) (p->d.end - m) >= size) {

src/core/ngx_palloc.c:130:17: Assignment
    128.                 p->d.last = m + size;
    129. 
    130.                 return m;
                         ^
    131.             }
    132. 

src/core/ngx_palloc.c:288:5: Assignment
  286.     void *p;
  287. 
  288.     p = ngx_palloc(pool, size);
           ^
  289.     if (p) {
  290.         ngx_memzero(p, size);

src/core/ngx_palloc.c:293:5: Assignment
  291.     }
  292. 
  293.     return p;
           ^
  294. }
  295. 

src/http/ngx_http.c:156:5: Assignment
154.     /* the http main_conf context, it is the same in the all http contexts */
155. 
156.     ctx->main_conf = ngx_pcalloc(cf->pool,
         ^
157.                                  sizeof(void *) * ngx_http_max_module);
158.     if (ctx->main_conf == NULL) {

src/http/ngx_http.c:252:12: Array access: Offset: ngx_http_core_module.ctx_index Size: [0, +oo]
250.      */
251. 
252.     cmcf = ctx->main_conf[ngx_http_core_module.ctx_index];
                ^
253.     cscfp = cmcf->servers.elts;
254. 
