[Info-vax] calloc fails with access violation

chrisj.doran at proemail.co.uk chrisj.doran at proemail.co.uk
Mon Aug 24 16:43:12 EDT 2009


On 24 Aug, 18:36, Jose Cuevas <jcue... at mac.com> wrote:
> 1. We have a problem with a fairly simple library written in C that
> gets called from Cobol.
>
> The C library is used to PUSH data generated by the Cobol application
> over HTTP POST using sockets.
>
> We are getting an access violation (a crash) on calls to calloc() of
> insignificant size. While at first we thought it was on a particular
> record we then found that it is a far more inconsistent.

I guess it was too much to expect it to be as simple as needing strlen
+1.

I suggest you look at the CMEM package in the DECUS library which is
designed to find heap corruption problems. You'll find it at
http://www.decus.org/libcatalog/description_html/vs0185.html and
elsewhere.

Chris




More information about the Info-vax mailing list