src/http/ngx_http_core_module.c:1236: error: Null Dereference
  pointer `name` last assigned on line 1188 could be null and is dereferenced by call to `memcpy()` at line 1236, column 13.

src/http/ngx_http_core_module.c:1161:1: start of procedure ngx_http_core_try_files_phase()
1159. 
1160. 
1161. ngx_int_t
      ^
1162. ngx_http_core_try_files_phase(ngx_http_request_t *r,
1163.     ngx_http_phase_handler_t *ph)

src/http/ngx_http_core_module.c:1179:5: 
1177.                    "try files phase: %ui", r->phase_handler);
1178. 
1179.     clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
          ^
1180. 
1181.     if (clcf->try_files == NULL) {

src/http/ngx_http_core_module.c:1181:9: Taking false branch
1179.     clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
1180. 
1181.     if (clcf->try_files == NULL) {
              ^
1182.         r->phase_handler++;
1183.         return NGX_AGAIN;

src/http/ngx_http_core_module.c:1186:5: 
1184.     }
1185. 
1186.     allocated = 0;
          ^
1187.     root = 0;
1188.     name = NULL;

src/http/ngx_http_core_module.c:1187:5: 
1185. 
1186.     allocated = 0;
1187.     root = 0;
          ^
1188.     name = NULL;
1189.     /* suppress MSVC warning */

src/http/ngx_http_core_module.c:1188:5: 
1186.     allocated = 0;
1187.     root = 0;
1188.     name = NULL;
          ^
1189.     /* suppress MSVC warning */
1190.     path.data = NULL;

src/http/ngx_http_core_module.c:1190:5: 
1188.     name = NULL;
1189.     /* suppress MSVC warning */
1190.     path.data = NULL;
          ^
1191. 
1192.     tf = clcf->try_files;

src/http/ngx_http_core_module.c:1192:5: 
1190.     path.data = NULL;
1191. 
1192.     tf = clcf->try_files;
          ^
1193. 
1194.     alias = clcf->alias;

src/http/ngx_http_core_module.c:1194:5: 
1192.     tf = clcf->try_files;
1193. 
1194.     alias = clcf->alias;
          ^
1195. 
1196.     for ( ;; ) {

src/http/ngx_http_core_module.c:1351:5: Loop condition is true. Entering loop body
1349.         r->phase_handler++;
1350.         return NGX_AGAIN;
1351.     }
          ^
1352. 
1353.     /* not reached */

src/http/ngx_http_core_module.c:1198:13: Taking false branch
1196.     for ( ;; ) {
1197. 
1198.         if (tf->lengths) {
                  ^
1199.             ngx_memzero(&e, sizeof(ngx_http_script_engine_t));
1200. 

src/http/ngx_http_core_module.c:1213:13: 
1211. 
1212.         } else {
1213.             len = tf->name.len;
                  ^
1214.         }
1215. 

src/http/ngx_http_core_module.c:1217:19: Condition is true
1215. 
1216.         /* 16 bytes are preallocation */
1217.         reserve = ngx_abs((ssize_t) (len - r->uri.len)) + alias + 16;
                        ^
1218. 
1219.         if (reserve > allocated) {

src/http/ngx_http_core_module.c:1217:9: 
1215. 
1216.         /* 16 bytes are preallocation */
1217.         reserve = ngx_abs((ssize_t) (len - r->uri.len)) + alias + 16;
              ^
1218. 
1219.         if (reserve > allocated) {

src/http/ngx_http_core_module.c:1219:13: Taking false branch
1217.         reserve = ngx_abs((ssize_t) (len - r->uri.len)) + alias + 16;
1218. 
1219.         if (reserve > allocated) {
                  ^
1220. 
1221.             /* we just need to allocate path and to copy a root */

src/http/ngx_http_core_module.c:1232:13: Taking true branch
1230.          }
1231. 
1232.         if (tf->values == NULL) {
                  ^
1233. 
1234.             /* tf->name.len includes the terminating '\0' */

src/http/ngx_http_core_module.c:1236:13: 
1234.             /* tf->name.len includes the terminating '\0' */
1235. 
1236.             ngx_memcpy(name, tf->name.data, tf->name.len);
                  ^
1237. 
1238.             path.len = (name + tf->name.len - 1) - path.data;
