Jmalloc.C C/C++ script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: jmalloc.c
  • Last update:
  • Platform: Windows
  • Language: C/C++
  • Price:Freeware
  • Company: Jeff Dunlop (View more)

Jmalloc.C script description:




Publisher review:
Jmalloc.C - Like MEM, more functions, check the copyright The J... macros are intended for use on JMalloc'd memory blocks. The A... macros are intended for use on auto array blocks and will only work if the base of the array is passed. They will not work if the address of an array element is passed. All functions are designed to be nearly drop-in replacements for standard library functions.

The one case where debugging libraries traditionally fall short is when a block operation occurs on an automatic array in a position other than at the head. This library could conceivably be extended to include a class of functions that allow you to pass both a block and an offset into that block so that the block and its size can be checked. My style of programming eschews this practice so I haven't had any motivation to soextend this library. Note that such an extension would depart slightly from the standard syntax of the runtime library because of the additional passed parameter.JMemcheck(0) may be called at any time for an overwrite check of all allocated blocks. JMemcheck(1) additionally checks for orphaned blocks and should be called just before program shutdown.All functions are designed to log any detectable errors when the errors occur, and to report either the line number of the overwrite, or the line number that the block was allocated on, depending on which is moreuseful. Any blocks that are damaged by non-JMalloc functions will not be noticed until they are JFree'd and will be tougher to debug.

Regardless of the damage that a function call produces, JMalloc never departs from the runtime library's behavior. Its job is to report, nothing more. All allocated blocks (except for JCalloc calls) are dirtied and all blocks are dirtied before they are freed. If you are referencing freed memory or not initializing a new block, it will be very obvious. All blocks have an extra check byte that is checked when the block is freed or during JMemcheck. This doesn't catch random memory writes, but it does catch overruns.
Jmalloc.C is a C/C++ script for Snippets scripts design by Jeff Dunlop. It runs on following operating system: Windows.

Operating system:
Windows

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5