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

XMLWordPrintable

    • Type: Incident report
    • Resolution: Duplicate
    • Priority: Blocker
    • None
    • Affects Version/s: 1.8.22, 2.0.17, 2.2.14, 3.0.4, 3.2.0beta2
    • Component/s: 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.

            Assignee:
            Unassigned
            Reporter:
            MATSUDA Daiki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: