src/aol.c

BUGDESC Use of memory after it is freed BUGTYPE Use-after-free BUGCATEGORY Memory Error BUGFILE /usr/home/richelieu/infoforcefeed/OlegDB/src/aol.c BUGLINE 287 BUGPATHLENGTH 14 BUGMETAEND REPORTHEADER File: aol.c Location: line 287, column 14 Description: Use of memory after it is freed REPORTSUMMARYEXTRA 1 #include "aol.h" 2 #include "data.h" 3 #include "oleg.h" 4 #include "logging.h" 5 #include "errhandle.h" 6 #include "lz4.h" 7 8 #include <stdio.h> 9 #include <unistd.h> 10 #include <fcntl.h> 11 #include <stdlib.h> 12 #include <time.h> 13 14 int ol_aol_init(ol_database *db) { 15 if (db->is_enabled(OL_F_APPENDONLY, &db->feature_set)) { 16 debug( "Opening append only log" ); 17 debug( "Append only log: %s" , db->aol_file); 18 db->aolfd = fopen(db->aol_file, "ab+" ); 19 check(db->aolfd != NULL, "Error opening append only file" ) if(!(db->aolfd != ...

Linked on 2014-06-11 19:30:09 | Similar Links