Changeset d120290


Ignore:
Timestamp:
Aug 31, 2021, 1:49:10 AM (5 months ago)
Author:
Jacob Prud'homme <jafprudhomme@…>
Branches:
jacob/cs343-translation, master
Children:
f03b1db
Parents:
a434e92
git-author:
Jacob Prud'homme <jafprudhomme@…> (08/05/21 23:49:29)
git-committer:
Jacob Prud'homme <jafprudhomme@…> (08/31/21 01:49:10)
Message:

Added comments where I'm having problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseconfig.cfa

    ra434e92 rd120290  
    4545        } else if ( size == max_size ) {
    4646                max_size *= 2;
    47                 data = resize( data, max_size );
     47                data = resize( data, max_size ); // HERE (null pointer deref)
     48                // data = realloc( data, max_size );
    4849        }
    4950
     
    9091                ^(*kv_pairs){};
    9192                exit | "Error: could not open input file '" | config_file | "'";
     93                // HERE (unfreed storage)
    9294        } // try
    9395        close( in );
     
    131133
    132134        ^(*kv_pairs){};
     135        // HERE (unfreed storage)
    133136} // processConfigFile
    134137
Note: See TracChangeset for help on using the changeset viewer.