Ticket #314 (closed enhancement: fixed)
Added PJ_SAFE_POOL configuration in PJLIB to track down memory corruptions
|Reported by:||bennylp||Owned by:||bennylp|
|Backport to 1.x milestone:||Backported:|
When PJ_SAFE_POOL is enabled (default is disabled), the following checks will be performed:
- when pool is destroyed, the pool is searched in the used_list to make sure that it hasn't been deallocated before.
- memory blocks will be prepended and appended with 32bit signature, and this signature will be verified when the block is freed.