LibVNC/x11vnc

Possible memory leaks

Bbulatov opened this issue · 0 comments

Good day!
Testing was carried out on Linux Debian 11. As a result of static analysis, the following possible memory leaks were found:

  1. In enc.h:1275, memory is allocated for the rsasav variable, but further in the code this memory is not cleared explicitly in the function (enc.h:1570)
    изображение
    изображение
  2. In remote.c:410, memory is allocated for the httpdir variable, but further in the code this memory is not cleared in any way in the function explicitly (remote.c:471)
    изображение
    изображение
  3. In sslhelper.c:124 memory is allocated to the path variable, but after executing line 138 the memory will leak
    изображение
  4. In sslhelper.c:3196 memory is allocated to the buf variable, but after executing line 3218 the memory will leak
    изображение
  5. In user.c:589, memory is allocated to the list variable, but then after its repeated use until the end of the function, there is no cleanup. Although in a similar block, cleaning occurs before this.
    изображение
    изображение
    Please clarify whether these situations require any correction?