Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-17799

Add ASAN-poisoned redzones for MEM_ROOT

    Details

      Description

      Redzones are poisoned memory between all allocations from memory heaps. It uses more memory but catches buffer overflow and underflow.

      Actually redzones could present if requested size is not a multiply of 8, because allocations size is aligned by 8. Obviously, it's not guaranteed.

      As a bonus string-like and vector-like containers could be instrumented too. See here for example https://github.com/llvm-mirror/libcxx/blob/ab883e8c3b9fb281e5fe064784951c5addd5d11c/include/vector#L846

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                kevg Eugene Kosov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: