[Bugme-new] [Bug 20102] New: malloc(3) should document MALLOC_PERTURB_ env option

bugzilla-daemon at bugzilla.kernel.org bugzilla-daemon at bugzilla.kernel.org
Mon Oct 11 12:00:14 PDT 2010


https://bugzilla.kernel.org/show_bug.cgi?id=20102

           Summary: malloc(3) should document MALLOC_PERTURB_ env option
           Product: Documentation
           Version: unspecified
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: man-pages
        AssignedTo: documentation_man-pages at kernel-bugs.osdl.org
        ReportedBy: vapier at gentoo.org
        Regression: No


setting MALLOC_PERTURB_ in the env will take that number and initialize all
malloc's with that value (and the inverse when freeing).  this should be
documented in malloc(3) (and noted in free(3)).

e.g. if you set MALLOC_PERTURB_=123, glibc will do memset((123 ^ 0xff) & 0xff)
when doing malloc(), and then glibc will do memset(123 & 0xff) when doing
free()

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Bugme-new mailing list