Преглед на файлове

Fix UAF in ngx_http_uploadprogress_event_handler

This UAF can be reached when compiling with --with-debug.

Fixes #61
tags/v0.9.4^2
Benny Baumann преди 1 година
родител
ревизия
9a4c984d41
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      ngx_http_uploadprogress_module.c

+ 1
- 1
ngx_http_uploadprogress_module.c Целия файл

502
 
502
 
503
 
503
 
504
     if (shm_zone == NULL) {
504
     if (shm_zone == NULL) {
505
-        ngx_http_uploadprogress_strdupfree(id);
506
         ngx_log_debug1(NGX_LOG_DEBUG_HTTP, ngx_cycle->log, 0,
505
         ngx_log_debug1(NGX_LOG_DEBUG_HTTP, ngx_cycle->log, 0,
507
                        "upload-progress: read_event_handler no shm_zone for id: %V", id);
506
                        "upload-progress: read_event_handler no shm_zone for id: %V", id);
507
+        ngx_http_uploadprogress_strdupfree(id);
508
         return;
508
         return;
509
     }
509
     }
510
 
510
 

Loading…
Отказ
Запис