Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-11170

shared memory code 'memalloc.c' has 2 critical bugs

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • None
    • 1.8.22, 2.0.17, 2.2.14, 3.0.4, 3.2.0beta2
    • Proxy (P), Server (S)
    • None

      shared memory code 'memalooc.c' has 2 critical bugs.

      1) It does not confirm enough space to split free chunk.
      There are 3 points to split free chunk area to 1 free and 1 used. But a point does not confirm enough space. So, it has a possiblity to produce the gabage which size is lesser than MEM_MIN_ALLOC and occur memory corruption! At least, I found the decreasing of free_size for configuration cache in spite of unchanging configuration.

      2) It has a calculation mistake for free chunk area after integration, which is not so critical. But free_size is continously decreasing.

      So, I attached fixed patch.

            Unassigned Unassigned
            daiki.matsuda@miraclelinux.com MATSUDA Daiki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: