Ticket #314 (closed enhancement: fixed)

Opened 10 years ago

Last modified 10 years ago

Added PJ_SAFE_POOL configuration in PJLIB to track down memory corruptions

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-0.8.0
Component: pjlib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description

When PJ_SAFE_POOL is enabled (default is disabled), the following checks will be performed:

  1. when pool is destroyed, the pool is searched in the used_list to make sure that it hasn't been deallocated before.
  2. memory blocks will be prepended and appended with 32bit signature, and this signature will be verified when the block is freed.

Change History

comment:1 Changed 10 years ago by bennylp

  • Status changed from new to closed
  • Resolution set to fixed

Implemented in r1333

comment:2 Changed 10 years ago by bennylp

  • Type changed from defect to enhancement
Note: See TracTickets for help on using tickets.