[OpenSIPS-Devel] [OpenSIPS/opensips] 359350: F_MALLOC: add extra safety checks at runtime

Liviu Chircu liviu at opensips.org
Tue Jan 6 18:10:14 CET 2015


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 35935051fab41b9a86f622e5fcdb852cf49ae742
      https://github.com/OpenSIPS/opensips/commit/35935051fab41b9a86f622e5fcdb852cf49ae742
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2015-01-06 (Tue, 06 Jan 2015)

  Changed paths:
    M Makefile.conf.template
    M error.h
    A mem/common.h
    M mem/mem.h
    M mem/shm_mem.h

  Log Message:
  -----------
  F_MALLOC: add extra safety checks at runtime

The F_MALLOC allocator now properly reports any free() or realloc() operations
which are performed on bogus memory regions, making OpenSIPS immediately abort.

These checks may be skipped by defining F_MALLOC_OPTIMIZATIONS at compile time.




More information about the Devel mailing list