bug-gnucobol
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[open-cobol-list] small bug...


From: Ulf Dambacher
Subject: [open-cobol-list] small bug...
Date: Tue, 01 Jan 2008 15:55:58 +0100
User-agent: Thunderbird 2.0.0.9 (X11/20071031)

Hi
While experimenting with open-cobol1.0 I found something in the generated sources:

the structures for a file are allocated like this:

        static cob_file_key *k_ARBSATZ = NULL;
        static cob_file *h_ARBSATZ = NULL;
        static char h_ARBSATZ_status[4];

with h_ARBSATZ_status being 4 chars, but initialized like this:

      h_ARBSATZ->file_status = h_ARBSATZ_status;
      memset (h_ARBSATZ_status, '0', 2);

with 2 bytes being set.
I did not find a line within source which is using h_ARBSATZ_STATUS[2] or [3], so it's a minor bug (only wasting memory) I think.

bye
Ulf


reply via email to

[Prev in Thread] Current Thread [Next in Thread]